I have the following macro that works in 2010 when I click on a button on the spreadsheet that launches the macro.
However, when I gave the workbook to my user that runs 2007, it doesn’t work.
Sub PrintProposal()
‘
‘ PrintProposal Macro
‘
‘
Sheets(Array(“Proposal”, “Spreadsheet”)).Select (<– the error is on this line)
Sheets("Proposal").Activate
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
Sheets("CustomerData").Select
End Sub
HELP! Thanks in advance.
May have found a clue. 2010 no longer works now either…I think because I HIDE the sheets that are being printed, save the workbook, and hope it works.
How can I have this work and also have the sheets hidden — so that the user only has 1 sheet and the print option buttons.