Consulting

Results 1 to 3 of 3

Thread: Solved: Code for printing.

  1. #1
    VBAX Mentor
    Joined
    Aug 2008
    Posts
    323
    Location

    Solved: Code for printing.

    Hello guys,

    I have developed a tools in excel and everything went well with help from you guys. I need help with setting the print area options.

    after my application creates out put I would like to set the print area as folows
    the width should fit to one page and I have first two rows as heading for the out put and I would like to have this heading in every sheet of print out.

    I dont know how to go about it. Can any one please help me with this

    thank you
    I am a Newbie, soon to be a Guru

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,729
    Location
    [VBA]
    With ActiveSheet.PageSetup
    .PrintTitleRows = "$1:$2"
    .Orientation = xlLandscape
    .FitToPagesWide = 1
    .FitToPagesTall = False
    End With
    [/VBA]

    Paul

  3. #3
    VBAX Mentor
    Joined
    Aug 2008
    Posts
    323
    Location
    thanks..
    I am a Newbie, soon to be a Guru

Posting Permissions

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