A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

footer page template



 
 
Thread Tools Display Modes
  #1  
Old March 10th, 2009, 04:18 PM posted to microsoft.public.word.pagelayout
Tara Collins
external usenet poster
 
Posts: 1
Default footer page template

We're trying to standardize our documents throughout the organization.

I am setting up a default page template that will be used for internal use
and revisions. It will include "Draft" as a watermark and in the footer
"date/time, file path+name, author." I've gotten this far and have saved the
doc as a template.

Two questions:
1) how do I set this as my new default page template so when I open Word, it
opens with this template and the proper filename/path? I've gone to the
upper-left-hand-corner Windows Button and can't figure it out.

2) Once the document is through revision and finalized, the footer's file
path/name area should be changed to just the filename. (keeping date/time and
author) Do I have to go in and manually change the footer every time before
saving the docment's final version?

Any help you can provide is appreiated. Thanks, T
  #2  
Old March 11th, 2009, 01:12 AM posted to microsoft.public.word.pagelayout
Doug Robbins - Word MVP on news.microsoft.com
external usenet poster
 
Posts: 409
Default footer page template

You should not try and set that template as the default template. Rather,
in the Normal.dot template (dotm if you are using Word 2007, create the
following macro

Sub autoexec()
Documents.Add "templatename"
End Sub

Then when you start Word, a document created from that template will be
created. You may also want to add a button to a toolbar (in Word 2003 and
earlier) or to the Quick Access Toolbar in Word 2007 to run that macro so
that the user can click on that button when they want to create a new
document.

If they want to start Word with a blank document, they should hold down the
Shift key when Word is starting as that will prevent an Auto macro from
executing.

For the second part of your request, that modification will either have to
be done manually or you could create a macro to make the modifications.
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Tara Collins" Tara wrote in message
...
We're trying to standardize our documents throughout the organization.

I am setting up a default page template that will be used for internal use
and revisions. It will include "Draft" as a watermark and in the footer
"date/time, file path+name, author." I've gotten this far and have saved
the
doc as a template.

Two questions:
1) how do I set this as my new default page template so when I open Word,
it
opens with this template and the proper filename/path? I've gone to the
upper-left-hand-corner Windows Button and can't figure it out.

2) Once the document is through revision and finalized, the footer's file
path/name area should be changed to just the filename. (keeping date/time
and
author) Do I have to go in and manually change the footer every time
before
saving the docment's final version?

Any help you can provide is appreiated. Thanks, T



  #3  
Old March 11th, 2009, 06:43 AM posted to microsoft.public.word.pagelayout
Graham Mayor
external usenet poster
 
Posts: 18,297
Default footer page template

The simplest way to work with this template is to create a shortcut to the
template on your desktop. The default action would be to open a new document
in Word based on that template. The template will need an autonew macro to
save the document and update the filename field if you want the filename to
be displayed. The document will not have a filename until it is saved.

As for the second question, the following macro will remove the \p switch
from a filename field in a footer and save the document

Dim oField As Field
Dim oSection As Section
Dim oFooter As HeaderFooter
For Each oSection In ActiveDocument.Sections
For Each oFooter In oSection.Footers
If oFooter.Exists Then
For Each oField In oFooter.Range.Fields
If oField.Type = wdFieldFileName Then
oField.Code.Text = Replace(oField.Code.Text, "\p", "")
oField.Update
End If
Next oField
End If
Next oFooter
Next oSection
ActiveDocument.Save



--

Graham Mayor - Word MVP

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



Tara Collins wrote:
We're trying to standardize our documents throughout the organization.

I am setting up a default page template that will be used for
internal use and revisions. It will include "Draft" as a watermark
and in the footer "date/time, file path+name, author." I've gotten
this far and have saved the doc as a template.

Two questions:
1) how do I set this as my new default page template so when I open
Word, it opens with this template and the proper filename/path? I've
gone to the upper-left-hand-corner Windows Button and can't figure it
out.

2) Once the document is through revision and finalized, the footer's
file path/name area should be changed to just the filename. (keeping
date/time and author) Do I have to go in and manually change the
footer every time before saving the docment's final version?

Any help you can provide is appreiated. Thanks, T




  #4  
Old March 11th, 2009, 06:25 PM posted to microsoft.public.word.pagelayout
Tara Collins[_2_]
external usenet poster
 
Posts: 1
Default footer page template

Thanks Doug. I'm new to 2007 and don't know anything about Macros. I'll have
to run through the tutorial so see how to place the text you recommend in the
Normal.docm. I tried cutting and pasting your text into the macro and it
didn't take.

I'm sending your suggestion on to a local college professor who might be
able to walk us through over the phone. I appreciate the direction ~ Thanks,
T

"Doug Robbins - Word MVP on news.microsof" wrote:

You should not try and set that template as the default template. Rather,
in the Normal.dot template (dotm if you are using Word 2007, create the
following macro

Sub autoexec()
Documents.Add "templatename"
End Sub

Then when you start Word, a document created from that template will be
created. You may also want to add a button to a toolbar (in Word 2003 and
earlier) or to the Quick Access Toolbar in Word 2007 to run that macro so
that the user can click on that button when they want to create a new
document.

If they want to start Word with a blank document, they should hold down the
Shift key when Word is starting as that will prevent an Auto macro from
executing.

For the second part of your request, that modification will either have to
be done manually or you could create a macro to make the modifications.
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Tara Collins" Tara wrote in message
...
We're trying to standardize our documents throughout the organization.

I am setting up a default page template that will be used for internal use
and revisions. It will include "Draft" as a watermark and in the footer
"date/time, file path+name, author." I've gotten this far and have saved
the
doc as a template.

Two questions:
1) how do I set this as my new default page template so when I open Word,
it
opens with this template and the proper filename/path? I've gone to the
upper-left-hand-corner Windows Button and can't figure it out.

2) Once the document is through revision and finalized, the footer's file
path/name area should be changed to just the filename. (keeping date/time
and
author) Do I have to go in and manually change the footer every time
before
saving the docment's final version?

Any help you can provide is appreiated. Thanks, T




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.