Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Custom header - utilize a cell for it's contents

How do I reference a cell in the customer header of a report so that if I
change the cell the report title also changes?
--
M. Shipp
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Custom header - utilize a cell for it's contents

You cannot directly reference cell addresses in a header of footer, or insert
graphics for that matter. The following code snippet might get you pointed
in the general direction.

Dim strHeader As String

Worksheets(1).Activate

strHeader = Range("A1").Value

If Len(strHeader) = 0 Then
strHeader = "Put Optional Default Header Text Here"
End If

ActiveSheet.PageSetup.CenterHeader = strHeader

--
Kevin Backmann


"SHIPP" wrote:

How do I reference a cell in the customer header of a report so that if I
change the cell the report title also changes?
--
M. Shipp

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
Can I create a custom header that depends on cell contents? Fred Excel Discussion (Misc queries) 3 June 3rd 08 04:16 PM
Custom Header - poss to link to contents of cell? Smudge Excel Discussion (Misc queries) 7 October 31st 07 04:05 PM
can I use a cell's contents as part of a custom header? NHVP Treasurer Excel Discussion (Misc queries) 1 February 12th 06 03:28 AM
Put cell contents into header Marty Excel Programming 6 November 16th 05 01:26 AM
excel - insert cell contents in a custom header / footer b Excel Discussion (Misc queries) 0 August 25th 05 06:51 PM


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

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"