Open_event + startup switch

Z

zSplash

I have a startup switch with an addin path (/laddinpath)and a Word document
with open document event (with a userform). If I comment out the
userform.show on open, the addin runs fine. If I userform.show on open, the
addin does not run. Is there some trick I'm missing, or what's the deal?

TIA
 
C

Cindy M -WordMVP-

Hi ZSplash,
I have a startup switch with an addin path (/laddinpath)and a Word document
with open document event (with a userform). If I comment out the
userform.show on open, the addin runs fine. If I userform.show on open, the
addin does not run. Is there some trick I'm missing, or what's the deal?
Possibly (just a guess, based on your evidence), displaying the UserForm
pre-empts the addin loading. You could have your addin write to a document
variable, or a text file, or the Registry - do something - to indicate it has
finished loading. Build the Document_Open event to loop until this value has
been written, and only load the userForm then.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :)
 
Z

zSplash

Thanks so much, Cindy. I think you're exactly right. Once again, I have a
case of the code executing too quickly and it's beyond "itself".

I'll try your suggestion using the timer. Thanks again!

st.
 

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