Header and Footer

A

Ankur

by using the macro you can set the header and footer ...also the print out
format and whenever u work on new sheet u have to just run the macro.
Tools \ Macros
 
B

Bob Phillips

You can also set it at print time

Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet.PageSetup
.LeftHeader = "Date: " & Format(Date, "dd mmm yyyy")
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)


Ankur said:
by using the macro you can set the header and footer ...also the print out
format and whenever u work on new sheet u have to just run the macro.
Tools \ Macros
spreadshheet ?
 
Top