Avatar of JP53
JP53
 asked on

Visual Basic Word

Hi,

My experience with Visual Basic is basically confined to Outlook. I now need to work with Word 2003 Forms and Controls. Is there a list if inbuilt Word Form and Control Events I can access anywhere? I need to set up a Word template form that produces a series of events (pop up message boxes, dynamic restriction of data entry etc) that will fire when users enter, make a change to, or exit certain form controls (checkboxes and the like).

John
Visual Basic ClassicMicrosoft Word

Avatar of undefined
Last Comment
JP53

8/22/2022 - Mon
GrahamSkan

You can see the events for any ActiveX control in the ThisDocument module.

You can set the Entry and/or the Exit macro (equivalent to GotFocus and LostFocus) via the Properties window in the case of form fields.

JP53

ASKER
Hi GrahamSkan,

Got as far as the VBA view as in attached. Where do I go from there?

J VIEW
GrahamSkan

Click on the left-hand drop-down which currently shows "(General)". You should now be able to see "Document", and an entry for each ActiveX control that is in the document. Select one. Then the list of available events can be seen in the right-hand drop-down.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
JP53

ASKER
Hi,

Nothing bit General in the drop down. Tried it with each of the modules etc. but the same result.
ASKER CERTIFIED SOLUTION
GrahamSkan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
JP53

ASKER
OK. Sorted. Many Thanks