ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding a line in footer (https://www.excelbanter.com/excel-programming/336024-adding-line-footer.html)

Vj

Adding a line in footer
 
Is there any way I can customize my footer.

I have some text in left, center and right section of footer but the text is
too big. Is there any way I can insert a blank line vbNewLine in the footer.

Help would be appreciated and thanks in advance.

Regards,

Bob Phillips[_6_]

Adding a line in footer
 
Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftHeader = "some text" & vbNewLine & "some more"
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)


"VJ" wrote in message
...
Is there any way I can customize my footer.

I have some text in left, center and right section of footer but the text

is
too big. Is there any way I can insert a blank line vbNewLine in the

footer.

Help would be appreciated and thanks in advance.

Regards,





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

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