Hi. Here is the code I've created:
Windows("Banana Republic (99316).xls").Activate
Sheets("My Favorite Store").Move After:=Workbooks( _
"My Favorite Store Macro.xlsm").Sheets(1)
Sheets("Controls").Select
The goal is to be able to manually download the Banana Republic workbook and open it, then the Macro will find it on the desktop and move it to the Macro enabled workbook. The code above works successfully, however: The problem is that every time a new Banana Republic report is downloaded, the number (99136) changes. So the code will not work every time. What can I do to get this code to work?
Note = The Banana Republic workbook is downloaded from a reporting system from an online database, which is why the name changes upon each download. However, Sheets("My Favorite Store") does not change. There is only one sheet in the Banana Republic Workbook.
Also, if you know of a more efficient way to accomplish this, I am open eyes ; it runs a bit slow.
Thanks in advance!
Windows("Banana Republic (99316).xls").Activate
Sheets("My Favorite Store").Move After:=Workbooks( _
"My Favorite Store Macro.xlsm").Sheets(1)
Sheets("Controls").Select
The goal is to be able to manually download the Banana Republic workbook and open it, then the Macro will find it on the desktop and move it to the Macro enabled workbook. The code above works successfully, however: The problem is that every time a new Banana Republic report is downloaded, the number (99136) changes. So the code will not work every time. What can I do to get this code to work?
Note = The Banana Republic workbook is downloaded from a reporting system from an online database, which is why the name changes upon each download. However, Sheets("My Favorite Store") does not change. There is only one sheet in the Banana Republic Workbook.
Also, if you know of a more efficient way to accomplish this, I am open eyes ; it runs a bit slow.
Thanks in advance!