+ Reply to Thread
Results 1 to 2 of 2

Help with Macro (copying data from multiple workbooks)

  1. #1
    Tim Harding
    Guest

    Help with Macro (copying data from multiple workbooks)

    All,

    How can I set up a macro which copies data in the same column and cell but
    from different workbooks or worksheets.....

    Thanks

    Tim

  2. #2
    John Mansfield
    Guest

    RE: Help with Macro (copying data from multiple workbooks)

    Tim,

    This example will copy the data from range A1:A6 from Sheet1 to Sheet2
    within the same workbook:

    Sub CopyRange1()
    Range("A1:A6").Copy
    Sheets("Sheet2").Range("A1").PasteSpecial Paste:=xlPasteValues
    Application.CutCopyMode = False
    End Sub

    This example will copy the data from range A1:A6 from Sheet1 in Book1 to
    Sheet1 in Book2:

    Sub CopyRange2()
    Range("A1:A6").Copy
    Windows("Book2").Activate
    Sheets("Sheet1").Range("A1").PasteSpecial Paste:=xlPasteValues
    Application.CutCopyMode = False
    End Sub

    ----
    Regards,
    John Mansfield
    http://www.pdbook.com


    "Tim Harding" wrote:

    > All,
    >
    > How can I set up a macro which copies data in the same column and cell but
    > from different workbooks or worksheets.....
    >
    > Thanks
    >
    > Tim


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1