Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Link cell text to header


Is there a way to have the text in a cell be linked so that it appears
in the header? Then if the text in the cell is changed, the header
changes accordingly?


--
Beeblebrox
------------------------------------------------------------------------
Beeblebrox's Profile: http://www.excelforum.com/member.php...o&userid=37348
View this thread: http://www.excelforum.com/showthread...hreadid=571825

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Link cell text to header

Lets say we want to use the content of cell Z100 in the center header:

Create a BeforePrint event macro containing the following line:
ActiveSheet.PageSetup.CenterHeader = Range("Z100").Value



--
Gary''s Student


"Beeblebrox" wrote:


Is there a way to have the text in a cell be linked so that it appears
in the header? Then if the text in the cell is changed, the header
changes accordingly?


--
Beeblebrox
------------------------------------------------------------------------
Beeblebrox's Profile: http://www.excelforum.com/member.php...o&userid=37348
View this thread: http://www.excelforum.com/showthread...hreadid=571825


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Link cell text to header

Do you mean a worksheets header? If so, no.

You could use the beforeprint event to place the desired information in the
header.

http://www.cpearson.com/excel/events.htm for an overview of events.

--
Regards,
Tom Ogilvy


"Beeblebrox" wrote:


Is there a way to have the text in a cell be linked so that it appears
in the header? Then if the text in the cell is changed, the header
changes accordingly?


--
Beeblebrox
------------------------------------------------------------------------
Beeblebrox's Profile: http://www.excelforum.com/member.php...o&userid=37348
View this thread: http://www.excelforum.com/showthread...hreadid=571825


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Link cell text to header


I already had a print macro that hid some columns and set a print area.
So just before the code setting the print area I used the following and
it works.



With ActiveSheet.PageSetup
CenterHeader = Range("N3").Value
RightHeader = Range("N5").Value
End With


--
Beeblebrox
------------------------------------------------------------------------
Beeblebrox's Profile: http://www.excelforum.com/member.php...o&userid=37348
View this thread: http://www.excelforum.com/showthread...hreadid=571825

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Link cell text to header

This macro works, however I cannot get my header to process the format,
to bold the header.
"&B" is not working into the macro.

Any suggestions?
Thanks.


Beeblebrox wrote:
I already had a print macro that hid some columns and set a print area.
So just before the code setting the print area I used the following and
it works.



With ActiveSheet.PageSetup
CenterHeader = Range("N3").Value
RightHeader = Range("N5").Value
End With


--
Beeblebrox
------------------------------------------------------------------------
Beeblebrox's Profile: http://www.excelforum.com/member.php...o&userid=37348
View this thread: http://www.excelforum.com/showthread...hreadid=571825




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Header - poss to link to contents of cell? Smudge Excel Discussion (Misc queries) 7 October 31st 07 04:05 PM
Link page header with cell contents Matthew Excel Worksheet Functions 8 May 1st 07 06:22 PM
How do I insert a link to a cell in a header in Excel? RobM Excel Discussion (Misc queries) 1 December 15th 06 04:29 PM
Want link my header to a cell value astrange Excel Discussion (Misc queries) 3 April 22nd 06 07:23 PM
Can you link a custom property to an Excel custom header text? LouErc Setting up and Configuration of Excel 0 November 8th 05 04:58 PM


All times are GMT +1. The time now is 11:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"