I'm trying to create a vba for a workbook to switch to that workbook but the name of that workbook could change.
For example. I'm using a workbook and save that workbook with today's date added to the name.
My current VBA currently copies a range of data, opens another spreadsheet, pastes that data, Returns back to the original workbook.
The issue is that because the original name was changed the switch back to the original workbook will no longer work.
I've found a few solutions but I'm not sure exactly which to use. Any suggestions would be most helpful.
Thanks!
For example. I'm using a workbook and save that workbook with today's date added to the name.
My current VBA currently copies a range of data, opens another spreadsheet, pastes that data, Returns back to the original workbook.
The issue is that because the original name was changed the switch back to the original workbook will no longer work.
I've found a few solutions but I'm not sure exactly which to use. Any suggestions would be most helpful.
Thanks!