Autosave problem

J

jamesdavey

I am having a nightmare with the word autosave "feature".

I am writing code to display forms on save and on SaveAs. The idea is
that the user has to enter the information when saving. However, I
cannot make these forms not appear during autosave!!

Turning autosave off is not an option.

Please help!!!
 
G

Graham Mayor

There is no inbuilt 'autosave' function in Word - only saving of
auto-recover information?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
J

jamesdavey

well, Autorecover or whatever it is, runs every 10 mins by default.
Problem is, it calls the Doc_BeforeSAve routine, which is where my
code is.

So I can use the SaveAsUI boolean to determine whether it is saving
normally, or saving via saveas - but every 10 minutes the form I'm
showing pops up. I need a way to recognise when autorecover/autosave
is running and stopping the form showing....
 
G

Gordon Bentley-Mix

I reckon the easiest solution would be to write 'FileSave' and 'FileSaveAs'
procedures to intecept the standard Word commands. This would avoid what
appears to be an inherent problem is trying to write code against the
DocumentBeforeSave event.

See the article Intercepting events like Save and Print on the MVP site
(http://word.mvps.org/faqs/macrosvba/InterceptSavePrint.htm) for more
information.
--
Cheers!
Gordon

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