Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
SendKeys can perform literal keystrokes.
Application.SendKeys "H" & "%(C)" Application.Dialogs(xlDialogPageSetup).Show After you confirm the custom header, click OK and return to the main pagesetup form - it may not show the header you just entered. Just click OK. Alternatively, you could get the user to input the header via an inputbox, then have VBA set the custom header x = Application.InputBox("Enter Header") Sheets("Sheet1").PageSetup.LeftHeader = x If you search VBA's help for headers, you should be able to find formatting codes for font, font size, italics, bold, etc. " wrote: More... When the pagesetup dialog box comes up, you can literally hit "H" on the keyboard and "<AltC" to get there after that. However, I am not aware of how to program literal key strokes into VBA. I am assuming that is all I would need to do? Thanks again. Matt St.Onge Drafting & Estimating Manager Mankato Kasota Stone www.mankatokasotastone.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to create a custom header/footer... | Excel Discussion (Misc queries) | |||
Macro for Custom Header | Excel Discussion (Misc queries) | |||
Custom Header Macro | Excel Discussion (Misc queries) | |||
Excel: custom header - is it possible to paste into header? | Excel Worksheet Functions | |||
how do I permanetly add custom header to excel header list? | Excel Discussion (Misc queries) |