Hi all
I am trying to figure out how to write the VBA coding to save multiple workbooks each day based on their file name. I save several system reports I download daily into Excel and save to a specific folder with a specific name that all my reporting macros use throughout the day
I have to download approx 10-15 system reports into excel then manually save each one before I can run all my other reporting. I am looking to write a macro that will loop through all the open files and save them into a specific name and folder that will remain static based on if their file name contains specific text. The system report names change daily (includes date).
an example:
System report named (will be variable with date): US - APM DATA REPORT (07-27-2021 06_05 PST).xlsx
I want to be able to loop through all open workbooks and look for the workbook that contains "APM DATA REPORT" and once it finds that workbook it will save it under a specific folder as; "US - APM DATA REPORT - 10884.xlsx"
I then want to loop through all open workbooks and look for the next keywords for another workbook and save that under a specific file name.
File name I am looking for will be variable with date, save as file name will always be the same.
Can anyone help?
I am trying to figure out how to write the VBA coding to save multiple workbooks each day based on their file name. I save several system reports I download daily into Excel and save to a specific folder with a specific name that all my reporting macros use throughout the day
I have to download approx 10-15 system reports into excel then manually save each one before I can run all my other reporting. I am looking to write a macro that will loop through all the open files and save them into a specific name and folder that will remain static based on if their file name contains specific text. The system report names change daily (includes date).
an example:
System report named (will be variable with date): US - APM DATA REPORT (07-27-2021 06_05 PST).xlsx
I want to be able to loop through all open workbooks and look for the workbook that contains "APM DATA REPORT" and once it finds that workbook it will save it under a specific folder as; "US - APM DATA REPORT - 10884.xlsx"
I then want to loop through all open workbooks and look for the next keywords for another workbook and save that under a specific file name.
File name I am looking for will be variable with date, save as file name will always be the same.
Can anyone help?