Can the Header and Footer be automatic set everytime I create a spreadshheet ?
Can the Header and Footer be automatic set everytime I create a spreadshheet ?
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
"Jav" wrote:
> Can the Header and Footer be automatic set everytime I create a spreadshheet ?
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" <[email protected]> wrote in message
news:[email protected]...
> 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
>
> "Jav" wrote:
>
> > Can the Header and Footer be automatic set everytime I create a
spreadshheet ?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks