|
|
|
date: Sun, 20 Apr 2008 10:29:00 -0700,
group: microsoft.public.word.customization.menustoolbars
back
Re: 2007 Document Information Properties - Prompt on Save
Here you go:
Dim Msg, Style, Title, Response
Msg = "Do you want to continue ?" ' Define message.
Style = vbYesNo + vbQuestion + vbDefaultButton2 ' Define buttons.
Title = "Save Document Propeties" ' Define title.
If Options.SavePropertiesPrompt = False Then
Msg = "Save Properties is turned off. Do you want to turn it on?"
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then ' User chose Yes.
Options.SavePropertiesPrompt = True
End If
Else
Msg = "Do you want to turn off the Save Properties Utility"
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then ' User chose Yes.
Options.SavePropertiesPrompt = False
End If
End If
--
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
"Bob Buckland ?:-)" <75214.226(At Beautiful Downtown)compuserve.com> wrote
in message news:ero3qHzoIHA.4112@TK2MSFTNGP03.phx.gbl...
> Hi Jerry,
>
> The feature was removed from Word 2007 as a user item, but can be set by
> a macro. The state of the prompt for properties is part
> of the Word binary hash key 'Data', so not easily set manually.
>
> This macro doesn't have any niceities (doesn't show a msg to say it's set,
> doesn't act as a toggle to turn it on or off, works on
> initial save of a document only to show the classic property dialog
> (advanced properties in Word 2007. Perhaps one of the
> MacroSavvy folks here will offer an improved version.
>
> '==============
> Sub Wd2007PropertiesPrompt()
> Options.SavePropertiesPrompt = True
>
> '================
>
> Note that in Word 2007 the basic behavior of
> Office Button=>Prepare=>Document Inspector
> will clear out property fields as they're part of items that contain
> identifying data.
>
> On a quick look it appears as though Herb's article that Suzanne mentioned
> for showing the Document Information Panel on close and
> save *may* be a Document specific choice, while the Word options choice is
> an all documents choice on first save. It wasn't
> uncommon for folks to turn off the old option because it was an
> always/never choice.
>
> =============
> <<"Jerry H" wrote in message
> news:5EA8EF79-C6C6-4EDD-A563-847B98C40E31@microsoft.com...
> How do I set the Document Information Properties to be required on a Save?
> This was a function on 2003, but I can't find it in
> 2007.>>
> --
>
> Bob Buckland ?:-)
> MS Office System Products MVP
>
> *Courtesy is not expensive and can pay big dividends*
>
>
date: Mon, 21 Apr 2008 10:25:42 +1000
author: Doug Robbins - Word MVP
|
|