Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Jun 2002
    Location
    London, Gtr London, England
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts

    simple vba (off97)

    Hello,

    I am trying to write a little vba to standardise my header/footers. Does anybody know how I put a carriage return in using vba?

    What I have so far is:

    ActiveSheet.PageSetup.RightFooter = "&F &A"

    gives filename then tab, but I would like tab underneath filename.

    Can anyone help?

    Jonathon

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: simple vba (off97)

    "&F" & vbLf & " &A"

    vbLf is "visual basic Line feed".

    P.S. watch the spacing on headers and footers which use more than one line.
    -John ... I float in liquid gardens
    UTC -7ąDS

  3. #3
    2 Star Lounger
    Join Date
    Sep 2001
    Location
    Blue Springs, Missouri, USA
    Posts
    108
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: simple vba (off97)

    Jonathan..

    I use this...

    & Chr(10)

    Dennis

    <img src=/S/gramps.gif border=0 alt=gramps width=20 height=20>

Posting Permissions

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