S
Steve Fisher
i have approx 45 spreadsheets in a directory (directory is
"c:\SCRIPTS".
Each spreadsheet has 3 worksheets.
Is there a simple macro (VBA) which can open up each workbook in turn
and then print the entire workbook and then close spreasheet and go on
to next one.
I presume gthe VBA is something along the lines of
1) Read the names of *.xls files in directory "c:\SCRIPTS" and store
this info
2) Open the file
3) Then
ActiveWorkbook.PrintOut Copies:=1, Collate:=True
This will print all worksheets
4) Then
ActiveWindow.Close
to close workbook
5) Go back to (2) and open next file
Can anyone help me with the code for (1), (2) and (5)
Regards
Steve Fisher
"c:\SCRIPTS".
Each spreadsheet has 3 worksheets.
Is there a simple macro (VBA) which can open up each workbook in turn
and then print the entire workbook and then close spreasheet and go on
to next one.
I presume gthe VBA is something along the lines of
1) Read the names of *.xls files in directory "c:\SCRIPTS" and store
this info
2) Open the file
3) Then
ActiveWorkbook.PrintOut Copies:=1, Collate:=True
This will print all worksheets
4) Then
ActiveWindow.Close
to close workbook
5) Go back to (2) and open next file
Can anyone help me with the code for (1), (2) and (5)
Regards
Steve Fisher