Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default execute code for all 12 months

I have some code I created that I need to run for all 12
months. I use a variable 'CurrentMonth' in 'MyCode' and
can set it to Jan or April or whatever.

e.g. Dim CurrentMonth As String
CurrentMonth = "jan"

Call MyCode


I want this code to loop through all 12 months and
execute 'MyCode'. How would I do that?


.........thanks in advance........Herb


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
Execute VB code depending on time of day WA Excel Discussion (Misc queries) 1 January 7th 10 07:41 PM
What does this mean? "Can't execute code in design mode" Danni2004 Excel Discussion (Misc queries) 4 September 27th 07 11:22 PM
Execute vba code on cell exit Bill (Unique as my name) Excel Discussion (Misc queries) 2 May 24th 07 03:48 PM
how do you execute single line of code? honestlylion Excel Discussion (Misc queries) 2 February 24th 06 03:35 PM
code in module A to not execute a Worksheet_SelectionChange sub of another module Jack Sons Excel Discussion (Misc queries) 4 December 11th 05 11:52 PM


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