Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Tue, 31 Jan 2006 20:39:02 -0800,    group: microsoft.public.word.vba.customization        back       


Require a Header   
Is there a way to require a user to type one of three phrases in a footer on 
every Word document he/she saves, regardless of which template is used?  For 
example, if a user is trying to save a document without the words, 
"confidential" or "open" or "n/a" in the footer is there a way to force them 
to type one of the three words before the document can be saved?  If not in 
all templates, at least in the Normal.dot?  Thank you
date: Tue, 31 Jan 2006 20:39:02 -0800   author:   Alex

Re: Require a Header   
I would put a Docvariable field in the footer of the template and have an 
autonew macro in the template display a userform with radio buttons for the 
three options and have code in a command button set the value of a document 
variable to the appropriate text and update the fields in the footer so that 
the appropriate classification was displayed,

-- 
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

"Alex"  wrote in message 
news:D748E4CB-43A2-47D3-AE4D-501E1856A71F@microsoft.com...
> Is there a way to require a user to type one of three phrases in a footer 
> on
> every Word document he/she saves, regardless of which template is used? 
> For
> example, if a user is trying to save a document without the words,
> "confidential" or "open" or "n/a" in the footer is there a way to force 
> them
> to type one of the three words before the document can be saved?  If not 
> in
> all templates, at least in the Normal.dot?  Thank you
date: Wed, 1 Feb 2006 06:21:45 +0100   author:   Doug Robbins - Word MVP

Re: Require a Header   
If you want to impose this on *every* document saved, regardless of template
then you will need to have code in a global template which is set up for all
users - in the Application DocumentBeforeSave Event. It might take some
smart coding to deal with whatever else might happen to already be in a
particular document's footer.

--
Enjoy,
Tony


"Alex"  wrote in message
news:D748E4CB-43A2-47D3-AE4D-501E1856A71F@microsoft.com...
> Is there a way to require a user to type one of three phrases in a footer
on
> every Word document he/she saves, regardless of which template is used?
For
> example, if a user is trying to save a document without the words,
> "confidential" or "open" or "n/a" in the footer is there a way to force
them
> to type one of the three words before the document can be saved?  If not
in
> all templates, at least in the Normal.dot?  Thank you
date: Wed, 1 Feb 2006 13:36:31 -0000   author:   Tony Jollans My Forename at My Surname dot com

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us