How to distinguish between explicit save and autosave

B

Birger Niss

Hi,

Is there anyway to distinguish between an explicit, user-initiated save and
an autosave in DocumentBeforeSave in a Word AddIn?

Best regards
Birger
 
C

Cindy M -WordMVP-

Hi Birger,
Is there anyway to distinguish between an explicit, user-initiated save and
an autosave in DocumentBeforeSave in a Word AddIn?
Not as far as I know. Unless by "Add-in" you mean code in a Word template.
Then it should be possible.

OR: you remove Word's menu and toolbar buttons and block out the keyboard
shortcut. Replace the buttons with your own. There's no way you can replace
the keyboard shortcut without including a VBA project. Keyboard shortcuts in
Word can only be assigned to VBA Code, not to outside add-ins. This code could
be part of a template Add-in, however.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

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

Birger Niss

Hi Cindy,

By AddIn I do mean a true AddIn (dll).
In my AddIn I intercept the DocumentBeforeSave event to pop up a dialog.
This obviously is extremely annoying during an autosave.

I this particular project using templates is not an option.

Anyway, thanks for your input.

Best regards
Birger
 
C

Cindy M -WordMVP-

Hi Birger,
By AddIn I do mean a true AddIn (dll).
In my AddIn I intercept the DocumentBeforeSave event to pop up a dialog.
This obviously is extremely annoying during an autosave.
I was afraid of that :) Yes, this topic has come up before in these
Office.Developer groups. A Google search would probably turn those up. If I
recall correctly, in one of the discussions (dating back a couple of years)
a Microsoft person even said there's no way to distinguish.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

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