Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default how to place values in custom header

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default how to place values in custom header

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default how to place values in custom header

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I place Range text into a header? Brad Excel Worksheet Functions 1 January 12th 07 01:46 AM
Can you link a custom property to an Excel custom header text? LouErc Setting up and Configuration of Excel 0 November 8th 05 04:58 PM
Excel: custom header - is it possible to paste into header? Maureen D. Excel Worksheet Functions 0 November 4th 05 03:07 PM
Place the first and last name on ever page printed in header Keith Excel Discussion (Misc queries) 0 November 2nd 05 11:18 PM
how do I permanetly add custom header to excel header list? GARY Excel Discussion (Misc queries) 1 December 15th 04 08:52 PM


All times are GMT +1. The time now is 05:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"