Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2006

Tip: Looking for answers? Try searching our database.

Modal form not acting Modally...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zSplash - 03 May 2006 19:30 GMT
I need to get user input before running code, so in the openDoc event of the
addin, the modal userform ufmGenType is shown.  As planned, when the addin
opens, ufmGenType is shown, but the code continues to execute without
waiting for ufmGenType to close.  How can I make the ufmGenType act modally
(and not allow any execution of code until it is closed)?

Here's the code I'm using:
   Private Sub Document_New()
       If initialMergeDone = False Then
           ufmGenType.Show
       End If
   End Sub

TIA
Jezebel - 04 May 2006 05:17 GMT
ufmGenType.Show vbmodal

>I need to get user input before running code, so in the openDoc event of
>the
[quoted text clipped - 12 lines]
>
> TIA
zSplash - 04 May 2006 18:58 GMT
Thanks, Jezebel, for the direction.

I wonder if my problem is something different.  My addin has a userform in
the DocOpen event and some individual documents using that addin also have
userforms in their DocOpen events.  Evidently, the addin's userform doesn't
appear if the individual document also has a userform in the DocOpen event.
How can I make it so that both userforms appear?

TIA

st.
> ufmGenType.Show vbmodal
>
[quoted text clipped - 14 lines]
> >
> > TIA
Jezebel - 05 May 2006 04:58 GMT
Have you checked that the addin's DocOpen event is indeed firing? (put in a
msgbox or debug.assert false statement to check).

> Thanks, Jezebel, for the direction.
>
[quoted text clipped - 28 lines]
>> >
>> > TIA
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.