Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
formatting headers
Hello,
I wonder if you can help me I know how to format a string within a header eg: sheet1.pagesetup.centerheader="&""ariel,bold"&""&1 4HELLO" formats the word HELLO to bold and size 14 However, instead of HELLO, I need to put in a variable which represents a date. If anyone can help I'd be very grateful Many thanks Geoff |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
formatting headers
Hi:
Try: Sheet1.PageSetup.CenterHeader = "&""Arial""&14&B" & _ Format(Date, "d-mmm-yyyy") Regards, Vasant. "need-A-hand" wrote in message ... Hello, I wonder if you can help me I know how to format a string within a header eg: sheet1.pagesetup.centerheader="&""ariel,bold"&""&1 4HELLO" formats the word HELLO to bold and size 14 However, instead of HELLO, I need to put in a variable which represents a date. If anyone can help I'd be very grateful Many thanks Geoff |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
formatting headers
This puts in a date with the format you specify, but it should be run before each print: With ActiveSheet.PageSetup .LeftFooter = "&""Arial,Bold""&14" & Format(Date, "mmm dd, yyyy") End With this uses the special date character so the date it updated automatically with the short date format: With ActiveSheet.PageSetup .LeftHeader = "&""Arial,Bold""&14&D" End With -- Regards, Tom Ogilvy need-A-hand wrote in message ... Hello, I wonder if you can help me I know how to format a string within a header eg: sheet1.pagesetup.centerheader="&""ariel,bold"&""&1 4HELLO" formats the word HELLO to bold and size 14 However, instead of HELLO, I need to put in a variable which represents a date. If anyone can help I'd be very grateful Many thanks Geoff |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copy formatting (headers, margins, etc) to another sheet? | Excel Discussion (Misc queries) | |||
lookup using column headers and row headers | Excel Discussion (Misc queries) | |||
Formatting Headers & Footers | Excel Discussion (Misc queries) | |||
Problem formatting pivot table headers | Excel Worksheet Functions | |||
Headers/Footers Formatting | Excel Discussion (Misc queries) |