ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Printing the contents on a named range in the Header of an Excel s (https://www.excelbanter.com/excel-programming/421049-re-printing-contents-named-range-header-excel-s.html)

royUK[_84_]

Printing the contents on a named range in the Header of an Excel s
 


Something like this using VBA


Code:
--------------------
With ActiveSheet.PageSetup
.LeftHeader = Sheet1.Range("A1").Value
.CenterHeader = Sheet1.Range("A5").Value
.RightHeader = Sheet1.Range("A10").Value
End With
--------------------



Substitute the range with your named range


--
royUK

Hope that helps, RoyUK
For tips & examples visit my 'web site' (http://www.excel-it.com/)
------------------------------------------------------------------------
royUK's Profile: http://www.thecodecage.com/forumz/member.php?userid=15
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=38816



All times are GMT +1. The time now is 10:15 PM.

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