- Excel 2010
Once I opened the file with the raw measurement by myself, I have a macro which performs some actions on the raw data, i.e. sorts it, deletes some stuff, copies some stuff into a new sheet.
At the end it closes the raw data file (while not saving the changes) and also closes, saves and renames the newly created Excel file the macro created after all the sorting, deleting and copying.
So considering I only have this macro file (.xlsm) open...
How can I run that macro on all the Excel files (.xlsx) which are in the same folder of said macro file? I'd prefer not to open them one by one and re-run the macro again.
I am currently closing the open "raw" file via:
ActiveWorkbook.Saved = True
ActiveWorkbook.Close SaveChanges:=False
Application.DisplayAlerts = True
Have to admit I don't know if they fully make sense but they work.