OhioExcelGuy
New Member
- Joined
- Dec 7, 2022
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
I am a new member but have found numerous posts here that have helped tremendously in the past. I do have one I cannot seem to figure out or find a previous thread that will cover.
I have a workbook with numerous tabs. Some of which are are named as years (2020, 2021, 2022, etc...). What I am wanting to do is enter a specific year in a cell in an "Input" tab and have a module (that can be added to a button) that recognizes that cell value and prints the corresponding tab with that year as the name. The "Input" sheet is Sheet26, if that is needed for the code.
So in summary, I would like to be able to enter "2022" into cell D3 of the "Input" tab, then be able to press a button and the tab named "2022" will be printed to pdf.
I apologize if there is already a thread that covers this. If there is, can someone point me to it?
Thanks in advance!
I have a workbook with numerous tabs. Some of which are are named as years (2020, 2021, 2022, etc...). What I am wanting to do is enter a specific year in a cell in an "Input" tab and have a module (that can be added to a button) that recognizes that cell value and prints the corresponding tab with that year as the name. The "Input" sheet is Sheet26, if that is needed for the code.
So in summary, I would like to be able to enter "2022" into cell D3 of the "Input" tab, then be able to press a button and the tab named "2022" will be printed to pdf.
I apologize if there is already a thread that covers this. If there is, can someone point me to it?
Thanks in advance!