View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
royUK[_84_] royUK[_84_] is offline
external usenet poster
 
Posts: 1
Default 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