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