LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Automatically applying a macro to many workbooks

Open all the workbooks, and then run code like


Dim WB As Workbook
For Each WB In Workbooks
WB.Activate
' call your macro here
Next WB



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"davidoo2005" wrote in
message
...
I have some 2000 books that each contain one data table to

process. Is there any way to automate a macro to process these
books without individually running the macro for each book?


 
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
Syntax error while applying a formula in a macro pol Excel Discussion (Misc queries) 3 December 1st 08 07:21 PM
Applying a macro to a command button, Excel 2002 Vicky Excel Discussion (Misc queries) 3 March 25th 08 07:05 PM
Applying a macro to all worksheets DannyS Excel Discussion (Misc queries) 7 January 15th 07 05:21 PM
Applying same macro to all worksheets in workbook [email protected] Excel Discussion (Misc queries) 2 October 19th 05 11:25 PM
Applying Macro to all workbooks... Trevor[_4_] Excel Programming 3 February 5th 04 09:57 PM


All times are GMT +1. The time now is 01:40 AM.

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

About Us

"It's about Microsoft Excel"