Results 1 to 5 of 5

Thread: [RESOLVED] page setup=landscape in excel

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2007
    Posts
    106

    Resolved [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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2007
    Posts
    106

    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!

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Nov 2007
    Posts
    106

    Re: [RESOLVED] page setup=landscape in excel

    done.

    my best regards!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width