ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   print zoom (https://www.excelbanter.com/excel-programming/424068-print-zoom.html)

geebee

print zoom
 
hi,

i have the following:

ActiveWindow.SelectedSheets.PrintOut ActivePrinter:="printer"


i would like to know how i can add a zoom number in this statement. I tried
ActiveWindow.SelectedSheets.PageSetup.Zoom = 60
ActiveWindow.SelectedSheets.PrintOut ActivePrinter:="printer"

but to no avail.. could someone please help?

thanks in advance,
geebee



Dave Peterson

print zoom
 
If you're only printing a single sheet:

with activesheet
.PageSetup.Zoom = 60
.PrintOut ActivePrinter:="printer"
end with

And that's the correct name for the activeprinter???


geebee wrote:

hi,

i have the following:

ActiveWindow.SelectedSheets.PrintOut ActivePrinter:="printer"

i would like to know how i can add a zoom number in this statement. I tried
ActiveWindow.SelectedSheets.PageSetup.Zoom = 60
ActiveWindow.SelectedSheets.PrintOut ActivePrinter:="printer"

but to no avail.. could someone please help?

thanks in advance,
geebee


--

Dave Peterson


All times are GMT +1. The time now is 01:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com