Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Noob Question 3

I have a workbook called Vacation Accrued within that workbook I have
Wooksheets for John Doe, Jane Doe, Joe Smith, Suzzie Jones, etc I Want to
execute that code when the Wookbook is open for all Worksheets (John Doe,
Jane Doe, Suzzie Jones and So On.....

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Noob Question 3

This is the basic idea.

Sub myWkbShts()
Dim sh As Worksheet
For Each sh In Workbooks("Vacation Accrued").Sheets
myMacro
Next
End Sub

Sub myMacro()
'Do stuff with John, Jane, Suzy, etc.
End Sub

You use one macro to call each sheet in the workbook and for each sheet you
run the macro that does something to the sheet. It will toggle back and
forth between the two macros until each sheet in the target workbook has been
worked by the macro that makes adjustments to the sheets.

"O...." wrote:

I have a workbook called Vacation Accrued within that workbook I have
Wooksheets for John Doe, Jane Doe, Joe Smith, Suzzie Jones, etc I Want to
execute that code when the Wookbook is open for all Worksheets (John Doe,
Jane Doe, Suzzie Jones and So On.....

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
Noob Question 2 O.... Excel Programming 6 October 3rd 07 11:43 AM
Noob Question O.... Excel Programming 7 October 2nd 07 11:24 PM
Noob Question Probably! :S LHUK Excel Programming 1 August 4th 07 02:14 AM
Noob question letmeplay1977 Excel Worksheet Functions 2 October 5th 05 09:27 PM
Noob question Micro_pal New Users to Excel 2 September 4th 05 02:37 PM


All times are GMT +1. The time now is 09:10 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"