Solved

Visual Basic Word

Posted on 2011-03-10
6
314 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:JP53
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 35095005
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.

0
 

Author Comment

by:JP53
ID: 35095270
Hi GrahamSkan,

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

J VIEW
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 35095946
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.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:JP53
ID: 35096104
Hi,

Nothing bit General in the drop down. Tried it with each of the modules etc. but the same result.
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 35097804
What controls have you put on the document?
0
 

Author Closing Comment

by:JP53
ID: 35126849
OK. Sorted. Many Thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Shortcuts in Word Just the other day I had a training for Microsoft and they wanted me to show how well the new Windows and Office behaved on a touch device, which by the way is great, but it was only then that I realized that using keyboard shortc…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question