Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Headers Footers kgm New Users to Excel 1 February 28th 09 09:11 PM
Formatting Headers & Footers Sonia Excel Discussion (Misc queries) 0 June 10th 08 04:15 PM
Headers/footers daisy Excel Worksheet Functions 2 September 13th 07 03:54 PM
Headers/Footers Formatting Ross Payne Excel Discussion (Misc queries) 1 December 14th 06 03:35 PM
headers/footers Sadie Excel Discussion (Misc queries) 1 September 21st 05 04:12 PM


All times are GMT +1. The time now is 03:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"