Good morning all. Newby coder here so, hopefully, this is a basic question
I have a sub that will open a file and pull monthly data from a specified year. The pages in the file are named "2001", "2002", etc.
The line in my sub is:
Sheets("2008").Select
What I need it to be is something like:
Sheets("20XX").Select
where XX is a variable determined by the user.
How is this accomplished?
Thank you for the assistance.
I have a sub that will open a file and pull monthly data from a specified year. The pages in the file are named "2001", "2002", etc.
The line in my sub is:
Sheets("2008").Select
What I need it to be is something like:
Sheets("20XX").Select
where XX is a variable determined by the user.
How is this accomplished?
Thank you for the assistance.