Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / September 2007

Tip: Looking for answers? Try searching our database.

Excel headers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Karissa - 12 Sep 2007 20:34 GMT
I am trying to get a header in excel to reference to a cell in a different
sheet.  Is that possible?  Thanks!
Bernard Liengme - 12 Sep 2007 21:13 GMT
Here is some VBA that will do it:

Sub UpdateHeader()
  ActiveSheet.PageSetup.LeftHeader = Range("Sheet4!G2").Value
End Sub

See:
XL2000: How to Reference a Cell in the Header or Footer
http://support.microsoft.com/default.aspx/kb/273028

If new to VBA visit David McRitchie's site on "getting started" with VBA
http://www.mvps.org/dmcritchie/excel/getstarted.htm

best wishes
Signature

Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

>I am trying to get a header in excel to reference to a cell in a different
> sheet.  Is that possible?  Thanks!
ilia - 12 Sep 2007 21:18 GMT
> I am trying to get a header in excel to reference to a cell in a different
> sheet.  Is that possible?  Thanks!

Supposing the cell on a different sheet is A1 and the different sheet
itself is called Sheet2, use this formula:

='Sheet2'!A1
ilia - 12 Sep 2007 21:18 GMT
Oh you meant page header, not column header... sorry.

> > I am trying to get a header in excel to reference to a cell in a different
> > sheet.  Is that possible?  Thanks!
[quoted text clipped - 3 lines]
>
> ='Sheet2'!A1
Karissa - 12 Sep 2007 21:38 GMT
I do mean page header, sorry I wasn't clear.  Does anyone know how to do that?

> Oh you meant page header, not column header... sorry.
>
[quoted text clipped - 5 lines]
> >
> > ='Sheet2'!A1
Bernard Liengme - 12 Sep 2007 22:19 GMT
Only with VBA as in my first message.
Signature

Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

>I do mean page header, sorry I wasn't clear.  Does anyone know how to do
>that?
[quoted text clipped - 9 lines]
>> >
>> > ='Sheet2'!A1
Karissa - 12 Sep 2007 22:56 GMT
Thank you, I really appreciate your help!  

> Only with VBA as in my first message.
> >I do mean page header, sorry I wasn't clear.  Does anyone know how to do
[quoted text clipped - 10 lines]
> >> >
> >> > ='Sheet2'!A1
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.