Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
automatically insert salary based on job title | Excel Worksheet Functions | |||
Setting LeftHeader / CenterHeader | Excel Programming | |||
Insert some cells by keeping the title block as same | Excel Discussion (Misc queries) | |||
VBA Code to Print a Variable as part of CenterHeader Problem | Excel Programming | |||
Excel generation and PageSetup.CenterHeader | Excel Programming |