ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Variables in headers (https://www.excelbanter.com/excel-programming/282618-variables-headers.html)

Musicguy

Variables in headers
 
Is there a way to place a variable I named in my code into a header and add some formatting
Thanks for the help!

Bob Phillips[_5_]

Variables in headers
 
Try something like

ActiveSheet.PageSetup.LeftHeader = Format(Date, "dd mmm yyyy")


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Musicguy" wrote in message
...
Is there a way to place a variable I named in my code into a header and

add some formatting?
Thanks for the help!





All times are GMT +1. The time now is 01:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com