Experts -
The issue:
1) I have some sql (someone else wrote) that can only execute for one month at a time
2) I need to run 24 months of data with this code (i.e. the query needs to be run separately 24 times, one month at a time)
3) The 24 months are dynamic. For example if I ran the macro this month I would start with June 2017, next month I would start with July 2017 and so on.
4) I am writing a batch macro to process the sql by month and output to Excel and am currently feeding in the months via a text input tool
Is it possible to somehow dynamically generate the list of month values for feeding into the macro?
Thanks in advance!!