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: 13
Default Running Macro/VBA in multiple worksheets.

I am trying to run a Macro (which works perfectly) in All Worksheets of a
particular Workbook. I currently have seven Worksheets in the Workbook and
have to select each Worksheet and manually run the Macro. I will eventually
have 50 (maybe more) Worksheets where the Macro will need to be run. I have
used the Private Sub code in VBA but can only get it to execute the Macro
in the active Worksheet when the Workbook opens.

Is there code that could/would run the Macro in All the Sheets? Sheet1,
Sheet2, Sheet3, Sheet4

Any help would be greatly appreciated.

--
SHD
 
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
how do you calculate a running balance in multiple worksheets? strawberryangel83 Excel Worksheet Functions 5 November 4th 08 02:41 PM
Running a macro in several worksheets Lisa Excel Discussion (Misc queries) 1 September 23rd 08 08:49 PM
Having a formula provide a running total from multiple worksheets sisko101 Excel Worksheet Functions 3 July 7th 06 10:06 PM
VBA to consolidate multiple worksheets to 1 worksheet in running sequence chongchingsoo[_5_] Excel Programming 0 November 11th 04 02:52 PM
VBA to consolidate multiple worksheets to 1 worksheet in running sequence chongchingsoo[_4_] Excel Programming 1 November 11th 04 02:27 PM


All times are GMT +1. The time now is 12:40 PM.

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"