Solved

Visual Basic Word

Posted on 2011-03-10
6
310 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
  • 3
  • 3
6 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
Comment Utility
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
Comment Utility
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
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:JP53
Comment Utility
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
Comment Utility
What controls have you put on the document?
0
 

Author Closing Comment

by:JP53
Comment Utility
OK. Sorted. Many Thanks
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now