This example changes the orientation of the document named "MyDocument.doc" and then prints the document. The example then changes the orientation of the document back to portrait.
Set myDoc = Documents("MyDocument.doc")
With myDoc
.PageSetup.Orientation = wdOrientLandscape
.PrintOut
.PageSetup.Orientation = wdOrientPortrait
End With
This example creates a new document, inserts text into it, uses this text to create a text box, and then sets the orientation of the text frame so that the text slopes upward.
Set mydoc = Documents.Add
Selection.TypeText "This is some text."
mydoc.Content.Select
Selection.CreateTextbox
mydoc.Shapes(1).TextFrame.Orientation = msoTextOrientationUpward