Action on Save seems to cause unneeded Saves

  • Thread starter christophercbrewster via OfficeKB.com
  • Start date
C

christophercbrewster via OfficeKB.com

I have an update subroutine that is triggered by a Save. (It's invoked by a
"Sub appWord_DocumentBeforeSave" in a separate class module.) During
development, the update routine has a message showing when it's active. It
works correctly except that it occasionally runs when I haven't done a save,
or anything else. (In one case I was in Powerpoint doing something else.)
These seem fairly random so I'm not sure how to test for it. Any ideas what
causes this?
 
C

christophercbrewster via OfficeKB.com

I identified a definite case that causes the phenomenon I described. When I'm
in another program and return to Word, this seems to trigger the Save event.
Why should returning to Word trigger a Save?
I have an update subroutine that is triggered by a Save. (It's invoked by a
"Sub appWord_DocumentBeforeSave" in a separate class module.) During
development, the update routine has a message showing when it's active. It
works correctly except that it occasionally runs when I haven't done a save,
or anything else. (In one case I was in Powerpoint doing something else.)
These seem fairly random so I'm not sure how to test for it. Any ideas what
causes this?

--
Christopher Brewster
Lockheed Martin, Eagan MN

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200901/1
 
G

Gordon Bentley-Mix

Christopher,

Could it be that AutoSave is triggering the subroutine? If so, I don't know
what the workaround might be, but at least it would explain the behaviour...
--
Cheers!

Gordon Bentley-Mix
Word MVP

Uninvited email contact will be marked as SPAM and ignored. Please post all
follow-ups to the newsgroup.
 

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