NormChart55
New Member
- Joined
- Feb 22, 2022
- Messages
- 44
- Office Version
- 2016
- Platform
- Windows
Hello,
I am wanting to use a macro to check data from another open workbook. The problem is that the workbook name will always change and have a new date. It will always start with 'Import' but daily would adjust (example: 'Import 10.23.23'). How can I adjust this to only look for 'Import" and exclude the date so that each day's file can be used? Below is example currently, but we have to manually save the file to remove the date. Thanks for any help on this.
I am wanting to use a macro to check data from another open workbook. The problem is that the workbook name will always change and have a new date. It will always start with 'Import' but daily would adjust (example: 'Import 10.23.23'). How can I adjust this to only look for 'Import" and exclude the date so that each day's file can be used? Below is example currently, but we have to manually save the file to remove the date. Thanks for any help on this.
Excel Formula:
Windows("Import.xlsx").Activate
Range("A1:AB1").Select
With Selection