Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 138
Default Macro to copy and paste between two workbooks

I have a macro that copies specific cells between workbooks, but I have
several workbooks I'd like to use it with (different company information) and
each is named differently. Because the macro switches back and forth copying
and pasting it names the Specific Workbook to copy from or paste to. Can I
make it generic somehow so I can use the macro with any workbook without
having to rename my workbooks and rename them again when the macro has
finished running.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default Macro to copy and paste between two workbooks

use the ActiveWorkbook.Next application and erase all the workbook names in
your code (ex. workbook( "aaaaaaaa.xls")), when you run the macro start from
the workbook you want to copy from an the macro will automatically switch to
the next opened workbook and paste all what hes has previusly copied.
HTH
PD. Remember just to have tow workbooks opened

"Paula" wrote:

I have a macro that copies specific cells between workbooks, but I have
several workbooks I'd like to use it with (different company information) and
each is named differently. Because the macro switches back and forth copying
and pasting it names the Specific Workbook to copy from or paste to. Can I
make it generic somehow so I can use the macro with any workbook without
having to rename my workbooks and rename them again when the macro has
finished running.

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
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
Copy and paste between workbooks keith Excel Discussion (Misc queries) 2 February 18th 09 04:46 PM
Copy and paste - two workbooks M Shannon Excel Programming 1 September 12th 04 07:37 PM
Copy and Paste Between Workbooks Lee Excel Programming 2 November 13th 03 08:08 PM
macro to copy and paste between 2 workbooks Gary B[_4_] Excel Programming 0 November 2nd 03 01:58 AM


All times are GMT +1. The time now is 07:06 PM.

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"