ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Using VBA to set footer (https://www.excelbanter.com/excel-discussion-misc-queries/11603-using-vba-set-footer.html)

Steven

Using VBA to set footer
 
I have the following code to setup a footer:

Sub DateFooter()

With Worksheets("sheet2").PageSetup
.LeftFooter = UCase(Format(Date, "dddd mmmm d, yyyy"))
End With

End Sub


In the code, how do I make it Bold Arial 10?

Thank you for your help.

Steven



Bob Phillips



--

HTH

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


"Steven" wrote in message
...
I have the following code to setup a footer:

Sub DateFooter()

With Worksheets("sheet2").PageSetup
.LeftFooter = UCase(Format(Date, "dddd mmmm d, yyyy"))
End With

End Sub


In the code, how do I make it Bold Arial 10?

Thank you for your help.

Steven





Bob Phillips



--

HTH

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


"Steven" wrote in message
...
I have the following code to setup a footer:

Sub DateFooter()

With Worksheets("sheet2").PageSetup
.LeftFooter = UCase(Format(Date, "dddd mmmm d, yyyy"))
End With

End Sub


In the code, how do I make it Bold Arial 10?

Thank you for your help.

Steven





Bob Phillips


Sub DateFooter()
With ActiveSheet.PageSetup
.LeftFooter = "&""Arial,Bold""&10" & UCase(Format(Date, "dddd mmmm
d, yyyy"))
End With
End Sub

--

HTH

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


"Steven" wrote in message
...
I have the following code to setup a footer:

Sub DateFooter()

With Worksheets("sheet2").PageSetup
.LeftFooter = UCase(Format(Date, "dddd mmmm d, yyyy"))
End With

End Sub


In the code, how do I make it Bold Arial 10?

Thank you for your help.

Steven






All times are GMT +1. The time now is 02:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com