Identifying how a save was generated

D

DevalilaJohn

I have an addin that I use to prompt for extra information when saving a
document. That functionality works fine. When we started testing this for
wider use, it turns out that with Auto Save turned on, the input form for the
extra data pops up whenever the Auto Save is done.

My question is, is there any way that I can trap or determine the source of
a save (e.g. Auto Save or user hit some flavor of Save) so that the user
doesn't see the input whenever an autosave is done?

Thanks for your replies.
 
W

Word Heretic

G'day DevalilaJohn <[email protected]>,

turn off the auto-prompt option before you manually save, then turn it
back on afterwards.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


DevalilaJohn reckoned:
 
D

DevalilaJohn

Hi Steve,

Thanks for the info. Unfortunately, I need to have the functionality in
wide spread use so a totally automatic solution would work best. I did build
a work around that puts a toolbar/button up to allow the user to disable the
autoprompt, along with code to keep that toolbar hidden if the extra save
functionality doesn't apply.

What I'd ideally like to know if if there's something I can query or trap in
the event procedure so that the prompt only comes up when the user hits save.
Pseudo code would be something like:

If savesource <> AutoSave then...
<prompt for inupts>
End If

Any ideas?

Best regards,

John
 
W

Word Heretic

G'day DevalilaJohn <[email protected]>,

That is the automatic way. Sorry, I should have said 'explicitly' not
'manually'.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


DevalilaJohn reckoned:
 

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