Results 1 to 6 of 6

Thread: VB Excel Userform - print in Landscape

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Location
    Toronto, Canada
    Posts
    41

    VB Excel Userform - print in Landscape

    Hello

    I am having trouble printing my user form in landscape view. here is my code...
    Private Sub cmdPrint_Click()
    With InputForm
    .PageSetup.Orientation = xlLandscape
    .PrintForm
    End With
    End Sub


    "Method or Data member not found" this is the error message i am getting..

    thank you in advance...

    Pretty Gal

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

    Re: VB Excel Userform - print in Landscape

    Welcome to the forums.

    On what line does the error occur?

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2006
    Location
    Toronto, Canada
    Posts
    41

    Re: VB Excel Userform - print in Landscape

    .PageSetup.Orientation = xlLandscape
    thanks

  4. #4
    Hyperactive Member
    Join Date
    Aug 2004
    Location
    Bloomingdale, IL USA
    Posts
    284

    Re: VB Excel Userform - print in Landscape

    .pagesetup.orientation does not belong to a form object, only a worksheet object. I don't believe you can adjust the orientation when printing the user form.

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

    Re: VB Excel Userform - print in Landscape

    Moved to Office Development

  6. #6

    Thread Starter
    Member
    Join Date
    Jan 2006
    Location
    Toronto, Canada
    Posts
    41

    Re: VB Excel Userform - print in Landscape

    hmm thank you

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