Documentbeforesave / Saveasui / Word 2000

A

Andrew

I am trying to intercept saves to ensure documents are
being saved into the correct place on the file system - in
essence replacing the Word save as dialogue with a bespoke
dialog.

In Word XP, the documentbeforesave event sets the saveasui
parameter to indicate if Word is intending to display the
User Interface. Thus I can separate "phantom" saves such
as those caused by Autosave from real saves where the user
has clicked "file / saveas" and thus insert my dialogu
into the Documentbeforesave event and everything is well.

However, in Word 2000 it seems that SaveasUI is always set
to true whether the save is caused by Autosave or by
closing the document or ... so I have a problem in Word
2000.

I have tried to capture the various save events and I have
been able to capture clicking on the menu file / save and
file / saveas options and catch closing the document using
documentbeforeclose but I can't find out how to intercept
the "Ctrl+s" or "Ctrl+a" key stroke saves (does anyone
have code to do this?) - nor can I intercept saves where
the document is a Word document opened inside Internet
Explorer (anyone know how to do this?).

What I would really like to do is be able to identify in
the documentbeforesave event whether the user is going to
be prompted for a location or whether Word is just going
to save the document (either as an Autosave or because the
save is simply updating an existing document - ctrl+s or
file / save or document close where document already
exists)

Any ideas from anyone - or does anyone know if there is a
patch to make the SaveasUI in Word 2000 function the same
as in Word XP?
 
C

Cindy M -WordMVP-

Hi Andrew,
if there is a
patch to make the SaveasUI in Word 2000 function the same
as in Word XP?
None that I know of. And I rather doubt the MS would do
this, as it would "break" any solutions programmed for Word
2000.

If your program is in the Word VBA interface you can name
macros FileSave and FileSaveAs, and these will replace the
built-in commands' actions. That would essentially do
everything you need...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top