Use the PropertyChange Event to Test Procedures

This topic shows how to test procedures for a custom form page that uses VBScript and the Script Editor.

Perform the following steps to test simple procedures. Replace the code below with the code that you want to test. Each time a user changes the value of the Importance field, or any other default field, the code runs.

  1. Open the Script Editor. How?

  2. On the Script menu, click Event Handler.

  3. In the Events box, double-click PropertyChange.

  4. Add the following code in the event:

  MsgBox "This is my test procedure"
  1. On the Form menu, click Run This Form.

  2. Click the ! icon on the toolbar. The message box will appear.

  3. Click OK to close the message box.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.