hockeyboi16
Programmer
How can i set the pageOrientation of my sheet to be landscape, instead of portraid, and how do i also move the page break further to the right so that my entire sheet can be printed width-wise on a landscape configuration?
to start my excel object i did:
dim excelSheet as object
set excelsheet = createobject("Excel.Sheet")
and through all my formatting, i've been referring to my sheet as:
excelsheet.application.cells(x,y).[property]
Any help is much appreciated! Oh, and based on the experience of my last posts, i did look at the macro recorder's code for setting page breaks and orientation, and it didn't work for me. =( perhaps i was doing something wrong, but i think it should have something to do with [sheet].pagesetup.orientation = [constant]
Thanks in advance!
--whit
to start my excel object i did:
dim excelSheet as object
set excelsheet = createobject("Excel.Sheet")
and through all my formatting, i've been referring to my sheet as:
excelsheet.application.cells(x,y).[property]
Any help is much appreciated! Oh, and based on the experience of my last posts, i did look at the macro recorder's code for setting page breaks and orientation, and it didn't work for me. =( perhaps i was doing something wrong, but i think it should have something to do with [sheet].pagesetup.orientation = [constant]
Thanks in advance!
--whit