?
Solved

Visual Basic Word

Posted on 2011-03-10
6
Medium Priority
?
317 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 2000 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

Industry Leaders: 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!

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

764 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