PrintPreview Zoom
I failed when I added a Sendkeys "{enter}" to your code:
Private Sub CommandButton3_Click()
UserForm1.Hide
Sendkeys "{enter}"
ActiveSheet.PrintOut Preview:=True
UserForm1.Show
End Sub
But even worse, when I was testing, I noticed that excel liked to help. If I
was zooming and closed print preview, the next time I did it, I was in zoom
mode.
If I wasn't zoomed, then the next time I did it, I wasn't in zoom mode.
I'm not sure if there's a way to find out what mode you're in (and then do
anything with it).
"CG Rosén" wrote:
Hi Group,
Using the code below to show the PrintPreview page
of a worksheet. Works fine, but is there a way to get
the PrintPreview page to open in the zoomed position?
Private Sub CommandButton3_Click()
UserForm1.Hide
ActiveSheet.PrintOut Preview:=True
UserForm1.Show
End Sub
Many thanks for some hints!
Brgds
CG Rosén
--
Dave Peterson
|