Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help with Header
I have the following code that puts the date value that I want into the
header of all worksheets. Sub DateInHeader2() Dim S As Worksheet For Each S In ActiveWorkbook.Worksheets S.PageSetup.LeftHeader = Format(Sheets("SUMMARY").Range("C1").Text, _ "[$-409]mmmm d, yyyy;@") Next End Sub Now I need to be to able format the text to bold. Below is a sample that I recorded to format the header to bold but I can not figure out how to incorpate this info into the above code. ..LeftHeader = "&""Arial,Bold""January 1, 2004" Please help |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help with Header
Hi
not tested but try: ..PageSetup.LeftHeader = "&""Arial,Bold""" & Format(Sheets("SUMMARY").Range _("C1").Text, "[$-409]mmmm d, yyyy;@") "Judd Jones" wrote: I have the following code that puts the date value that I want into the header of all worksheets. Sub DateInHeader2() Dim S As Worksheet For Each S In ActiveWorkbook.Worksheets S.PageSetup.LeftHeader = Format(Sheets("SUMMARY").Range("C1").Text, _ "[$-409]mmmm d, yyyy;@") Next End Sub Now I need to be to able format the text to bold. Below is a sample that I recorded to format the header to bold but I can not figure out how to incorpate this info into the above code. .LeftHeader = "&""Arial,Bold""January 1, 2004" Please help |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help with Header
Sub DateInHeader2()
Dim S As Worksheet For Each S In ActiveWorkbook.Worksheets S.PageSetup.LeftHeader = "&""Arial,Bold""" & _ Format(Sheets("SUMMARY").Range("C1").Text, _ "[$-409]mmmm d, yyyy;@") Next End Sub -- Regards, Tom Ogilvy "Judd Jones" wrote in message ... I have the following code that puts the date value that I want into the header of all worksheets. Sub DateInHeader2() Dim S As Worksheet For Each S In ActiveWorkbook.Worksheets S.PageSetup.LeftHeader = Format(Sheets("SUMMARY").Range("C1").Text, _ "[$-409]mmmm d, yyyy;@") Next End Sub Now I need to be to able format the text to bold. Below is a sample that I recorded to format the header to bold but I can not figure out how to incorpate this info into the above code. .LeftHeader = "&""Arial,Bold""January 1, 2004" Please help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Omit header from first page without embedding header in code | Excel Worksheet Functions | |||
Get Intersection value given column header and row header | Excel Discussion (Misc queries) | |||
Excel-Header-My Company Name won't work in Header (AT&T) & Time | Excel Discussion (Misc queries) | |||
Excel: custom header - is it possible to paste into header? | Excel Worksheet Functions | |||
how do I permanetly add custom header to excel header list? | Excel Discussion (Misc queries) |