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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Orientation in Excel from VB

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
I want to change the page orientation for an Excel sheet from VB6 (using . I've done that before but i can't seem to find the right object...

can anyone help me?

XLApp.Range("C:ZZ").EntireColumn.AutoFit
'''''change to landscape here'''''
XLApp.ActiveWorkbook.PrintPreview
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top