Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Headers Footers | New Users to Excel | |||
Formatting Headers & Footers | Excel Discussion (Misc queries) | |||
Headers/footers | Excel Worksheet Functions | |||
Headers/Footers Formatting | Excel Discussion (Misc queries) | |||
headers/footers | Excel Discussion (Misc queries) |