View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Herb Buist Herb Buist is offline
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