Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tim Harding
 
Posts: n/a
Default 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   Report Post  
John Mansfield
 
Posts: n/a
Default

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro does not run when data refreshed Larry Lehman Excel Discussion (Misc queries) 0 January 16th 05 07:31 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
2 questions, copying data from sheet to sheet and assigning macro Boris Excel Worksheet Functions 0 December 16th 04 06:11 PM
Macro for multiple charts JS Excel Worksheet Functions 1 November 19th 04 03:44 AM
Daily Macro to Download Data, Order and paste in order Iarla Excel Worksheet Functions 1 November 17th 04 01:59 PM


All times are GMT +1. The time now is 08:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"