Word Form Fails When Using The Mouse

R

Raj

Hi Guys/Dolls

I'm using word forms and my program works ok when using the keyboard - using
tab key to navigate around the form but crashes when using the mouse with a

"Microsoft Office Word has encountered a problem and need to close. We are
sorry for the inconvenience".

Has anybody come across this? If so how do I resolve this.
 
C

Cindy M.

Hi =?Utf-8?B?UmFq?=,
I'm using word forms and my program works ok when using the keyboard - using
tab key to navigate around the form but crashes when using the mouse with a

"Microsoft Office Word has encountered a problem and need to close. We are
sorry for the inconvenience".
Which version of Word is involved, here? (Version is very important for this
problem.)

Do you have any code executing when you exit/enter the form fields?

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 :)
 
R

Raj

Hi Cindy M

Version is office word 2003 with SP installed.
Only code I'm running is code within the form fields nothing fancy.
I think it may be something to do with protecting/unprotecting the form too
quick ?
i.e. I unprotect the form put my text in (text being obtained from a file)
between 2 bookmarks and then re-protect the form. Could this be a problem.
Would apprecite any help.

Raj
 
C

Cindy M.

Hi =?Utf-8?B?UmFq?=,
Version is office word 2003 with SP installed.
Only code I'm running is code within the form fields nothing fancy.
I think it may be something to do with protecting/unprotecting the form too
quick ?
i.e. I unprotect the form put my text in (text being obtained from a file)
between 2 bookmarks and then re-protect the form. Could this be a problem.
Possibly...

I know there was a real problem with Word 2000, but hadn't ever encountered
any basic issues with 2003.

If you're inserting only "plain text" you might try putting another form
field. Disable it for the user in the Options dialog box - you can still write
to it in VBA code (.Result = "test"). That would mean you don't need to
unprotect/reprotect.

Do you have only "Exit" macros, or also some "Enter" macros?

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 :)
 
R

Raj

Hi Cindy

Fixed it !! Basically what I did was on the fields that had exit routines
(I'll call them original fields), just before the end of the routine I
diverted focus to a field that had no exit routines and then back to the
original field.

This seems to have cured my screen of death.

Thanks for all your suggestions - keep up the good work you and your
colleagues are doing on the MVP site.

Raj
 
C

Cindy M.

Hi Raj,
Fixed it !! Basically what I did was on the fields that had exit routines
(I'll call them original fields), just before the end of the routine I
diverted focus to a field that had no exit routines and then back to the
original field.
Very good :)!

Cindy Meister
 

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