Results 1 to 3 of 3
  1. #1

    Default VBA: copy CELL data from EXCEL1 to EXCEL2


    Patabang ko ninyu guys.

    I have 2 excel files.
    For example:
    EXCEL1 and EXCEL2

    I already have a macro that will generate a report for me in a MODULE of EXCEL1. However, I need help copying a CELL data from EXCEL1 to a sheet in EXCEL2.

    I can move the focus from EXCEL1 to EXCEL2 by using "Windows("EXCEL2").Activate". But, succeeding lines like RANGE("A1").SELECT (for example) will generate an error.

    What can i do?

  2. #2
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    it would be helpful if you paste the error your some of the functions involve... or did you record the macro?
    but judging from what I understand... can you try to tweak around this command.

    Range(xx & yy).Value = ActiveCell.Offset(row_offset, column_offset).Value
    Cells.Find("xxx").Activate
    Range("Number" & ActiveCell.Row).Value = ActiveCell.Offset(row_offset, column_offset).Value
    or maybe you mean copy? Activecell.PasteSpecial to a Worksheets(name).range(...)

    I hope it helps...


    Mark

  3. #3
    got it.
    I typed the macro in a module I created in the PERSONAL.XLS file. That way, it's available to all EXCEL files I open.

    thanks..

  4.    Advertisement

Similar Threads

 
  1. How to recover data from dead hard drive?
    By Krazelle in forum Computer Hardware
    Replies: 16
    Last Post: 03-18-2013, 07:54 PM
  2. sending data from phone to pc via bluetooth
    By envy01 in forum Programming
    Replies: 8
    Last Post: 01-31-2013, 11:16 AM
  3. Looking For: data cable from Laptop to LCD projector
    By dada in forum Computers & Accessories
    Replies: 4
    Last Post: 12-23-2011, 10:41 PM
  4. Replies: 14
    Last Post: 03-11-2010, 08:52 PM
  5. Where to repair/recover data from hard disk
    By ByteTracker in forum Computer Hardware
    Replies: 13
    Last Post: 07-24-2006, 01:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top