![]() |
Using VBA to insert a multiple-row title in the CenterHeader
How does one do the above. I am able to insert a single line but have not
figured out how to insert two or more lines. -- Thanks and Peace |
Using VBA to insert a multiple-row title in the CenterHeader
Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet.PageSetup .LeftHeader = "Line 1" & Chr(10) & "Line 2" 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 Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Montana" wrote in message ... How does one do the above. I am able to insert a single line but have not figured out how to insert two or more lines. -- Thanks and Peace |
Using VBA to insert a multiple-row title in the CenterHeader
Thanks for the quick response. I will give it a try.
-- Peace "Bob Phillips" wrote: Private Sub Workbook_BeforePrint(Cancel As Boolean) With ActiveSheet.PageSetup .LeftHeader = "Line 1" & Chr(10) & "Line 2" 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 Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Montana" wrote in message ... How does one do the above. I am able to insert a single line but have not figured out how to insert two or more lines. -- Thanks and Peace |
All times are GMT +1. The time now is 11:28 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com