+ Reply to Thread
Results 1 to 2 of 2

Coding for header

  1. #1
    Registered User
    Join Date
    12-10-2005
    Posts
    30

    Coding for header

    Hi There:Thanks in advance.
    I am writing a text header at the center of my excel sheet. The text will be in 2 lines. I am writing code like:
    .CenterHeader = "Monthly Report" & vbCrLf & "For Survey".
    But its giving a big gap between the 2 lines. Like:

    Monthly Report
    .
    .
    For Survey

    How can I delete this gap and can have a header that will look.
    Monthly Report
    For Survey

    -Appreciate VBA help.
    --Thanks in advance

  2. #2
    Dave Peterson
    Guest

    Re: Coding for header

    I'd try widening the column, then autofitting.

    Then autofit the row.

    And I'd use vblf instead of vbcrlf (or even vbnewline).



    jesmin wrote:
    >
    > Hi There:Thanks in advance.
    > I am writing a text header at the center of my excel sheet. The text
    > will be in 2 lines. I am writing code like:
    > CenterHeader = "Monthly Report" & vbCrLf & "For Survey".
    > But its giving a big gap between the 2 lines. Like:
    >
    > Monthly Report
    >
    >
    > For Survey
    >
    > How can I delete this gap and can have a header that will look.
    > Monthly Report
    > For Survey
    >
    > -Appreciate VBA help.
    > --Thanks in advance
    >
    > --
    > jesmin
    > ------------------------------------------------------------------------
    > jesmin's Profile: http://www.excelforum.com/member.php...o&userid=29540
    > View this thread: http://www.excelforum.com/showthread...hreadid=494843


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1