Visual Basic Code

Discussion in 'Web Design & Coding' started by NLM, Apr 12, 2003.

  1. NLM

    NLM Guest

    I am making an Macro in excel. What is the code for an Page Break. Thanks
     
  2. NLM

    NLM Guest

    got it (document).Selection.InsertBreak
     
  3. NLM

    NLM Guest

    Ok I guess no one knows anything about VB. I suck but here is another question.

    How do you make a document landscaped?

    thanks
     
  4. brunsodj

    brunsodj OSNN Addict

    Messages:
    103
    Try this using a statement like this:

    ActiveSheet.PageSetup.Orientation = xlLandscape

    Dan
     
  5. dave holbon

    dave holbon Moderator

    Messages:
    1,014
    Location:
    London England
    I would just turn the paper sideways!