Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can you place a value in the customer header?
I would like to put the day of the week on the header Monday Tuesday etc. Also any way to ask for input into the header? Example Name of: __________ Would like to have the ________ be entered if possible? thanks Tom |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Tom,
Try this, Sub test() Dim vDay As String vDay = InputBox("Enter name", "Header Setup") If vDay < "" Then With ActiveSheet.PageSetup .LeftHeader = vDay .CenterHeader = ""'modify to suit .RightHeader = ""'modifiy to suit End With End If End Sub Regards, Shah Shailesh http://members.lycos.co.uk/shahweb/ (Excel Add-ins) *** Sent via Developersdex http://www.developersdex.com *** |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks
The only question I have is where do I place this code? Tom "Shailesh Shah" wrote in message ... Hi Tom, Try this, Sub test() Dim vDay As String vDay = InputBox("Enter name", "Header Setup") If vDay < "" Then With ActiveSheet.PageSetup .LeftHeader = vDay .CenterHeader = ""'modify to suit .RightHeader = ""'modifiy to suit End With End If End Sub Regards, Shah Shailesh http://members.lycos.co.uk/shahweb/ (Excel Add-ins) *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I place Range text into a header? | Excel Worksheet Functions | |||
Can you link a custom property to an Excel custom header text? | Setting up and Configuration of Excel | |||
Excel: custom header - is it possible to paste into header? | Excel Worksheet Functions | |||
Place the first and last name on ever page printed in header | Excel Discussion (Misc queries) | |||
how do I permanetly add custom header to excel header list? | Excel Discussion (Misc queries) |