PC Review


Reply
Thread Tools Rate Thread

Copy from one source to multiple spreadsheets

 
 
msdrolf
Guest
Posts: n/a
 
      23rd Nov 2009
On a master spreadsheet I have on each row data for multiple spreadsheets. I
would like to set up a macro to copy this data into each of the designated
destination spreadsheets. The macro I have is:

Windows(SourceName).Activate
Range(row, 2).Select
Selection.Copy
Windows(dept & ".xls").Activate
Range("C3").Select
ActiveSheet.Paste

The problem is that "Range(row,2).Select" is not working. Is there a code
which would work. Thanks
 
Reply With Quote
 
 
 
 
John_John
Guest
Posts: n/a
 
      23rd Nov 2009
It not need to select the objects of Excel to manage them.
You can say something like below having the master worksheet activated:

Range(Row, 2).Copy _
Destination:=Workbooks("DestWorkbook").Worksheets("DestWSheet").Range("D3")

Ο χρήστης "msdrolf" *γγραψε:

> On a master spreadsheet I have on each row data for multiple spreadsheets. I
> would like to set up a macro to copy this data into each of the designated
> destination spreadsheets. The macro I have is:
>
> Windows(SourceName).Activate
> Range(row, 2).Select
> Selection.Copy
> Windows(dept & ".xls").Activate
> Range("C3").Select
> ActiveSheet.Paste
>
> The problem is that "Range(row,2).Select" is not working. Is there a code
> which would work. Thanks

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy tab from one spreadsheet to multiple tabs in another spreadsheetwhile retaining the targets spreadsheets tab names Dave Microsoft Excel Programming 15 7th Jan 2011 12:31 AM
Copy the same 2 columns from multiple spreadsheets into one new sh Tas Microsoft Excel Misc 0 7th Dec 2007 12:04 AM
Seagate DiscWizard to copy source HD with multiple partitions Lawrence Gould Storage Devices 3 18th Dec 2006 05:14 AM
Copy data from multiple worksheets to worksheets in a number of other spreadsheets SteveH Microsoft Excel Discussion 5 6th Nov 2006 06:59 PM
Copy Multiple Spreadsheets into One Workbook Astroplastic Microsoft Excel Programming 1 16th Jul 2003 02:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:30 AM.