Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Print Orientation Toggle
I'm trying to write a macro that will allow me to toggle between Portrait &
Landscape modes. I know this should be simple, but I'm missing something. Please assist. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Print Orientation Toggle
Hi Alan
Sub PrintToggle() With ActiveSheet.PageSetup If .Orientation = xlPortrait Then ..Orientation = xlLandscape Else ..Orientation = xlPortrait End If End With End Sub -- XL2002 Regards William "Alan Tolkoff" <Alan wrote in message ... | I'm trying to write a macro that will allow me to toggle between Portrait & | Landscape modes. | | I know this should be simple, but I'm missing something. | | Please assist. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Print Orientation Toggle
Alan
Sub Toggle_Orient() With ActiveSheet.PageSetup If .Orientation = xlLandscape Then .Orientation = xlPortrait Else .Orientation = xlLandscape End If End With End Sub Gord Dibben Excel MVP On Mon, 13 Dec 2004 17:05:01 -0800, Alan Tolkoff <Alan wrote: I'm trying to write a macro that will allow me to toggle between Portrait & Landscape modes. I know this should be simple, but I'm missing something. Please assist. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Orientation Landscape but want Page #s to Print Portrait | Excel Discussion (Misc queries) | |||
Why does my page orientation change when I print? | Excel Discussion (Misc queries) | |||
print form orientation | Excel Programming | |||
Print Landscape AND Portrait Orientation in ONE Worksheet | Excel Programming | |||
Print Landscape AND Portrait Orientation in ONE Worksheet | Excel Programming |