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 / January 2005

Tip: Looking for answers? Try searching our database.

Word crashes when I read the textfield-value in protected mode

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
andreas.fey@t-online.de - 16 Jan 2005 18:25 GMT
Hi,

I have a problem using the onexit-macro with a formfield.
Word crashes if I click on a formfield in protected document mode. But
this only happens if the formfields are on more than one page.
I have tested this with Word 2000 9.0.6926 SP3. All updates are
installed.

To reproduce the error:
- Create a new document
- Insert 2 textinputfields at the beginning of the document.
- Insert a third textinputfield at the bottom of page 2 (hit enter
serveral times to create the new page) and name it "three". It is
important to place the third field near the bottom of page 2 and not on
top to make the distance to field 1 and 2 big enough.
- create a new macro called "crashtest" with one line:
myvalue = ActiveDocument.FormFields("three").Result
- Now doubleclick on the first field and assign this macro "crashtest"
to the onexit event
- protect the document so the user can only fillout the textfields
(Menu extras / protect)

Write the word "test" into both fields on page 1.
Now press the TAB-Key serveral times so that the contents of field 1 is
highlighted.
If You now click on field 2 using the mouse word will crash.

Any suggestions how to solve this problem ?
I only want to read some values to calculate a sum. I am sure this must
be possible in any way.
Thank You!!
Doug Robbins - 16 Jan 2005 20:14 GMT
I cannot replicate your problem.

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> Hi,
>
[quoted text clipped - 27 lines]
> be possible in any way.
> Thank You!!

Rate this thread:






 
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.