execute code for all 12 months

H

Herb Buist

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top