Hi Everyone,
If I have a named range with values 1 thru 12 named "Months", and two separate Cells that ask for user input "Beg Month" and "End Month".....
How can I use VBA to capture those values and the values between these two numbers?
For example, if a user input the number 5 for the "Beg Month" and the number 7 for the "End Month", how can I use a variable to capture the numbers 5,6, and 7?
The "Months" named range is on sheet 2 B5:B16.
The "Beg Month" entry cell is on Sheet1 in cell C11, and the "End Month" is on Sheet1 in Cell C12.
Any suggestions on VBA methods would be much appreciated.
Thank you very much in advance.
If I have a named range with values 1 thru 12 named "Months", and two separate Cells that ask for user input "Beg Month" and "End Month".....
How can I use VBA to capture those values and the values between these two numbers?
For example, if a user input the number 5 for the "Beg Month" and the number 7 for the "End Month", how can I use a variable to capture the numbers 5,6, and 7?
The "Months" named range is on sheet 2 B5:B16.
The "Beg Month" entry cell is on Sheet1 in cell C11, and the "End Month" is on Sheet1 in Cell C12.
Any suggestions on VBA methods would be much appreciated.
Thank you very much in advance.