Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autofitting a row | Excel Discussion (Misc queries) | |||
How to get a cell reference of by searchig a text string? | Excel Discussion (Misc queries) | |||
Hide text that doesn't fit in the cell | Excel Discussion (Misc queries) | |||
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. | Excel Worksheet Functions | |||
Formatting a cell as "text" in the number catagory. | Excel Worksheet Functions |