Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

orinatation of a document

Status
Not open for further replies.

Killa

Programmer
Oct 19, 2001
56
US
how do u find out if the document is landscape or portrait
 
Excel or Word?

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
This kind of thing is what you do:
Code:
    If ThisDocument.PageSetup.Orientation = wdOrientLandscape Then
        MsgBox "Land"
    ElseIf ThisDocument.PageSetup.Orientation = wdOrientPortrait Then
        MsgBox "Port"
    End If

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top