Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I include a cell's value in a worksheet header?

I am running Office XP pro. I want to display the value of a cell in the
header when I print a worksheet.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default How can I include a cell's value in a worksheet header?

BillSea:

add this code to Thisworkbook Module

'ThisWorkbook
Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet.PageSetup
.LeftHeader = Range("A1")
'.CenterHeader = ""
'.RightHeader = ""
End With
End Sub


--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"BillSea" wrote:

I am running Office XP pro. I want to display the value of a cell in the
header when I print a worksheet.

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
How to Include a specific Cell's Contents in a footer Excel 2003 CH-DE-FDS APRIL Excel Discussion (Misc queries) 1 November 17th 08 01:36 PM
Can I link a cell's contents to the header or footer in Excel? djoslyn Excel Discussion (Misc queries) 14 October 17th 06 11:03 PM
how to include a variable in the header and/or footer of a worksheet tmacke Excel Discussion (Misc queries) 2 April 14th 06 10:13 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
How can I include the name of the tab in a header without typing . kasaz Excel Worksheet Functions 1 February 25th 05 12:43 AM


All times are GMT +1. The time now is 10:06 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"