Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.pagelayout
rpgs rock dvds rpgs rock dvds is offline
external usenet poster
 
Posts: 2
Default Header text only on page 1?

I'm using Word 2007. I've got a long document, and I'd like to have a
small line of small font text at the very top of page 1 only saying:
Document last updated: xx/xx/xxxx. Is it possible to have this "page
header text" only appear on page 1? Thanks a lot for any advice.
  #2   Report Post  
Posted to microsoft.public.word.pagelayout
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Header text only on page 1?

You could use the savedate field. However most fields do not update
automatically and if you updated the savedate field after saving to display
its revised content, the document would need to be saved again ad infinitum.

It should however show the correct date the next time the document is
opened.

You could work around this anomaly with a couple of macros in the document
template, then replace the field in the document with the docvariable field
{ DocVariable varSaveDate }. The macros update a document variable with the
current date before saving. You can change the date formatting switches
"dd/MM/yyyy" to suit your local preference.

As you only want this on page one, you can either insert it in the first
page header thus: Document last updated {DocVariable varSaveDate}
or
you can conditionally insert it in the document header thus: {IF {Page} = 1
"Document last updated {DocVariable varSaveDate}"}

Use CTRL+F9 for each pair of brackets {}

http://www.gmayor.com/installing_macro.htm

Sub FileSave()
Dim oVars As Variables
Dim oField As Field
Set oVars = ActiveDocument.Variables
oVars("varSaveDate").Value = Format(Date, "dd/MM/yyyy")
For Each oField In ActiveDocument.Fields
If oField.Type = wdFieldDocVariable Then
oField.Update
End If
Next oField
On Error Resume Next
ActiveDocument.Save
ActiveWindow.Caption = ActiveDocument.FullName
End Sub

and

Sub FileSaveAs()
Dim oVars As Variables
Dim oField As Field
Set oVars = ActiveDocument.Variables
oVars("varSaveDate").Value = Format(Date, "dd/MM/yyyy")
For Each oField In ActiveDocument.Fields
If oField.Type = wdFieldDocVariable Then
oField.Update
End If
Next oField
On Error Resume Next
Dialogs(wdDialogFileSaveAs).Show
ActiveWindow.Caption = ActiveDocument.FullName
End Sub


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"rpgs rock dvds" wrote in message
...
I'm using Word 2007. I've got a long document, and I'd like to have a
small line of small font text at the very top of page 1 only saying:
Document last updated: xx/xx/xxxx. Is it possible to have this "page
header text" only appear on page 1? Thanks a lot for any advice.



  #3   Report Post  
Posted to microsoft.public.word.pagelayout
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Header text only on page 1?

On the contextual Header & Footer Tools | Design tab, in the Options group,
check the box for "Different first page." This will give you a separate
First Page Header and First Page Footer. In the First Page Header, put any
text you want to appear only on the first page. I would be more inclined to
put an update date in the First Page Footer, however. Note that, using this
option, you will need to repeat in the First Page Header/Footer any
Header/Footer text that you want on the first page.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"rpgs rock dvds" wrote in message
...
I'm using Word 2007. I've got a long document, and I'd like to have a
small line of small font text at the very top of page 1 only saying:
Document last updated: xx/xx/xxxx. Is it possible to have this "page
header text" only appear on page 1? Thanks a lot for any advice.


  #4   Report Post  
Posted to microsoft.public.word.pagelayout
rpgs rock dvds rpgs rock dvds is offline
external usenet poster
 
Posts: 2
Default Header text only on page 1?

On 24 Aug, 12:22, rpgs rock dvds wrote:
I'm using Word 2007. *I've got a long document, and I'd like to have a
small line of small font text at the very top of page 1 only saying:
Document last updated: xx/xx/xxxx. *Is it possible to have this "page
header text" only appear on page 1? *Thanks a lot for any advice.


Thanks a lot for the advice - I'll try it out this Fri when I'm back
on my main machine.
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i put text and page number in a header? t_rock Microsoft Word Help 1 November 17th 09 07:59 AM
Page X OF Y In Word 2007 Deletes Text In Header Marilyn Microsoft Word Help 5 March 10th 09 02:34 PM
Changing some text in the header in the middle of a 10 page docume Vylula Bell Microsoft Word Help 4 January 22nd 09 11:17 PM
Use heading text as page header RobG Microsoft Word Help 2 December 9th 08 04:05 AM
Page Text Chopped Below Header RichUE Microsoft Word Help 4 October 8th 08 12:49 PM


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

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"