D
DevDaniel
I have:
A macro to change page setup properties. The macro appears to run but
doesn't change the properties.
I want:
The macro needs to work if the names or number of worksheets changes (there
will always be a worksheet "Main" that begins with the wrong page setup
properties).
1. To change the print quality of all worksheets to 600 dpi.
2. To change the Fit to Page property of the "Main" worksheet to False.
Code snippet:
'Change print quality of all sheets to 600 dpi
ActiveWorkbook.Sheets.Select
With ActiveSheet.PageSetup
.PrintQuality = 600
End With
'Change the FitToPagesTall property on the Main worksheet to False
Sheets("Main").Select
With ActiveSheet.PageSetup
.FitToPagesWide = 1
.FitToPagesTall = False
End With
Any suggestions?
A macro to change page setup properties. The macro appears to run but
doesn't change the properties.
I want:
The macro needs to work if the names or number of worksheets changes (there
will always be a worksheet "Main" that begins with the wrong page setup
properties).
1. To change the print quality of all worksheets to 600 dpi.
2. To change the Fit to Page property of the "Main" worksheet to False.
Code snippet:
'Change print quality of all sheets to 600 dpi
ActiveWorkbook.Sheets.Select
With ActiveSheet.PageSetup
.PrintQuality = 600
End With
'Change the FitToPagesTall property on the Main worksheet to False
Sheets("Main").Select
With ActiveSheet.PageSetup
.FitToPagesWide = 1
.FitToPagesTall = False
End With
Any suggestions?