Displaying something within a range name in an Excel Header
I have the following code to modify the header for the worksheet.
Sub Workbook_BeforePrint(Cancel As Boolean) Application.ScreenUpdating = False With ActiveSheet.PageSetup .LeftHeader = "" .CenterHeader = _ "&""Arial,Bold""&12TITLE &""Arial,Regular""&10" _ & Chr(10) & "Last date saved: " & Format(ThisWorkbook.BuiltinDocumentProperties("las t save time").Value, "dd-mmm-yyyy") .RightHeader = "" .LeftFooter = "" .CenterFooter = "" & Chr(10) & "&P of &N" .RightFooter = "" End With Application.ScreenUpdating = True End Sub Where I have TITLE, I want to display the value of the range name "TEST" and then follow it with TITLE. What do I need to change to get this to work?' Thanks |
All times are GMT +1. The time now is 12:45 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com