|
-
Nov 5th, 2007, 07:59 AM
#1
Thread Starter
Lively Member
[RESOLVED] page setup=landscape in excel
hi, i want to make an excel file from visual basic wich is landscape
my code is this
oSheet.PageSetup.Orientation = Excel.Constants.xlLandscape
and it has the error xllandscape is not a member of excel.constants
-
Nov 5th, 2007, 08:07 AM
#2
Re: page setup=landscape in excel
That is because it isn't a member of excel.constants
The orientation belongs to the Workbook.Worksheet
Do you have variables for them?
-
Nov 5th, 2007, 08:22 AM
#3
Thread Starter
Lively Member
Re: page setup=landscape in excel
Done it
oSheet.PageSetup.Orientation = XlPageOrientation.xlLandscape
thank you very much for youre post, it's a great forum with quick support!
-
Nov 5th, 2007, 08:55 AM
#4
Re: page setup=landscape in excel
You are welcome.
If you consider this resolved, you could help us out by pulling down the Thread Tools menu and clicking the Mark Thread Resolved menu item. That will let everyone know that you have your answer.
Thank you.
-
Nov 5th, 2007, 08:57 AM
#5
Thread Starter
Lively Member
Re: [RESOLVED] page setup=landscape in excel
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|