I have a workbook with multiple worksheets set to show/hide. I've created the below macro as a start to set the printing format so that it doesn't change for the users. I have two questions: 1) will the print settings apply when the users save the document in pdf format, and 2) how do I get the macro's Array to include only the worksheets the user completed?
I've tried various ways to get the macro to reference a cell within the workbook that lists only the worksheets that need to be printed but they didn't work. I'd appreciate all guidance provided as I'm still relatively new to macros.
I've tried various ways to get the macro to reference a cell within the workbook that lists only the worksheets that need to be printed but they didn't work. I'd appreciate all guidance provided as I'm still relatively new to macros.
Code:
Sub PrintWorkbook()
Sheets(Array("Welcome!", "Summary Tab")).Select
Sheets("Welcome!").Activate
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False
End Sub