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

  • Thread starter Thread starter Dots
  • Start date Start date
D

Dots

I want to print the contents of a named range in the header of my document
when I go to print the worksheet. In the custom header options, this is not
available. Is there a way to do this and can you tell me how? Thanks!

Dots
 
Assuming that the Name blockk has already been assigned to some cell:

Sub Macro1()
ActiveSheet.PageSetup.CenterHeader = Range("blockk").Value
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top