+ Reply to Thread
Results 1 to 3 of 3

Thread: formatting headers/footers

  1. #1
    lallen
    Guest

    formatting headers/footers

    Where can I find documentation on formatting headers and footers? I've found
    an example that sets the font and size, but haven't been able to figure out
    how to set bold and/or italics and do a line feed.

  2. #2
    sebastienm
    Guest

    RE: formatting headers/footers

    The best way is to turn the Macro Recorder 'On' and set the Header, then
    study the generated code.

    Eg: I wrote in the header:
    this time i
    what do you
    on two line with the part 'i what' in bold arail 11pt
    also i inserted a new line after the 'i' --> chr(10)
    Here is the generated code:
    ActiveSheet.PageSetup.LeftHeader = _
    "this &""Arial,Bold""&11time i" & Chr(10) & "what &""Arial,Regular""do
    you"
    --
    Regards,
    Sébastien
    <http://www.ondemandanalysis.com>


    "lallen" wrote:

    > Where can I find documentation on formatting headers and footers? I've found
    > an example that sets the font and size, but haven't been able to figure out
    > how to set bold and/or italics and do a line feed.


  3. #3
    lallen
    Guest

    RE: formatting headers/footers

    Thanks Sebastien. Excellent suggestion. It worked like a charm.

    Larry

    "sebastienm" wrote:

    > The best way is to turn the Macro Recorder 'On' and set the Header, then
    > study the generated code.
    >
    > Eg: I wrote in the header:
    > this time i
    > what do you
    > on two line with the part 'i what' in bold arail 11pt
    > also i inserted a new line after the 'i' --> chr(10)
    > Here is the generated code:
    > ActiveSheet.PageSetup.LeftHeader = _
    > "this &""Arial,Bold""&11time i" & Chr(10) & "what &""Arial,Regular""do
    > you"
    > --
    > Regards,
    > Sébastien
    > <http://www.ondemandanalysis.com>
    >
    >
    > "lallen" wrote:
    >
    > > Where can I find documentation on formatting headers and footers? I've found
    > > an example that sets the font and size, but haven't been able to figure out
    > > how to set bold and/or italics and do a line feed.


+ 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.2.0