Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
duane
 
Posts: n/a
Default How to reference a text cell that changes weekly in Header or Foo.

In LOTUS 1-2-3 in the Header or Footer you can reference a text cell in the
worksheet and have the contents appear in the Header/Footer. The text cell
referenced changes weekly for date or some other text and this command puts
the text automatically in the Header/Footer. How do you do this in EXCEL/
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet.PageSetup
.LeftFooter = Format(Date, "dd mmm yyyy")
End With
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code

--

HTH

RP
(remove nothere from the email address if mailing direct)


"duane" wrote in message
...
In LOTUS 1-2-3 in the Header or Footer you can reference a text cell in

the
worksheet and have the contents appear in the Header/Footer. The text

cell
referenced changes weekly for date or some other text and this command

puts
the text automatically in the Header/Footer. How do you do this in EXCEL/



  #3   Report Post  
Bob Umlas, Excel MVP
 
Posts: n/a
Default

You need a macro. Right-click the Excel LOGO near the File menu, select View
Code, enter this (this example assumes you want the contents of cell D1 in
the right header:)
Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.RightHeader = Range("D1").Value
End Sub

HTH


"duane" wrote:

In LOTUS 1-2-3 in the Header or Footer you can reference a text cell in the
worksheet and have the contents appear in the Header/Footer. The text cell
referenced changes weekly for date or some other text and this command puts
the text automatically in the Header/Footer. How do you do this in EXCEL/

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
Autofitting a row Josephine Excel Discussion (Misc queries) 2 March 3rd 05 03:37 PM
How to get a cell reference of by searchig a text string? Najeeb Excel Discussion (Misc queries) 1 January 3rd 05 07:03 AM
Hide text that doesn't fit in the cell Rene Excel Discussion (Misc queries) 1 December 16th 04 04:34 PM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. [email protected] Excel Worksheet Functions 2 December 11th 04 12:05 AM
Formatting a cell as "text" in the number catagory. Ed Excel Worksheet Functions 3 December 7th 04 07:12 PM


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