ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   execute code for all 12 months (https://www.excelbanter.com/excel-programming/272104-execute-code-all-12-months.html)

Herb Buist

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




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com