UPDATE: See below
I think the best way to pose my question is to describe the current procedure and the procedure I would like to implement. The current procedure:
1) My program creates NNN (some number) of CSV files (e.g. file1.csv, file2.csv, file3.csv, etc).
2) I move those CSVs to my Google Drive.
3) I select the first one and [right click] "Open With Google Sheets"
4) Once the data from the CSV file is imported into the new Google Spreadsheet file, I:
A) Delete the first column (A)
B) Highlight all the column headings (first row)
C) Apply Bold, and Bottom Border
D) Highlight all the columns (A-F)
E) Double-click on a column-head separator to resize all columns to an optimal width
F) View, Freeze, 1 Row
G) Close the spreadsheet
5) Repeat, until all CSVs are imported and reformatted (separate single-sheet/tab spreadsheets, one for each CSV file)
The procedure I would like:
1) My program creates NNN (some number) of CSV files.
2) I move those CSV files to my Google Drive.
3) I select the first one and [right click] "Open With Google Sheets"
4) Once the data from the CSV file is imported into the new Google Spreadsheet file, I:
A) Press [Alt]-r* (which performs the formatting steps A-G, detailed above)
5) Repeat, until all CSV files are imported and reformatted (separate single-sheet/tab spreadsheet files, one for each CSV file)
The trick (and the basis for my question) is, how do I run the macro designated [Alt]-r in each of the spreadsheets I've just created, when the code for that macro is stored in some other spreadsheet file (e.g. MyReformattingMacro)?
*The keystroke that fires the macro is unimportant. I used "[Alt]-r" as an example.
UPDATE: Based on @ale13's suggestion I think an alternative to my "Procedure I would like" could be:
1) My program creates NNN (some number) of CSV files.
2) I move those CSV files to my Google Drive.
3) I select the first one and [right click] "Open With Google Sheets"
4) Once the data from the CSV file is imported into the new Google Spreadsheet file, I:
5) Repeat, until all CSV files are imported and reformatted (separate single-sheet/tab spreadsheet files, one for each CSV file)
6) I open a spreadsheet that contains the names of all the spreadsheet I just created (I could create the names list at the same time I create the original CSV files), and copy and paste the list into "MyReformattingMacro" (mentioned above). And then press [Alt]-r* (which performs the reformatting operations A-G, detailed above)