beautypg.com

How vba code runs, Parts of the vba – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual

Page 663

background image

C

U

SING

THE

SE C

LIENT

OBJECT

MODEL

AND

DISPLAY

CODE

C–3

• •

C • Pl

aceh

old
er

How VBA code runs

The VBA procedures you create are called in response to events that occur in a graphic
display at run time.

Events that can be used in this way are defined in the Display Client object model, and
include actions such as the display being opened and animated, mouse clicks, and so on.

Parts of the VBA integrated development environment

The integrated development environment for VBA IDE, is available from the
FactoryTalk View Graphics editor.

Use the VBA IDE to create, test, and debug VBA procedures. VBA procedures can be
designed to run in response to events that occur in FactoryTalk View graphic displays at
run time.

To open the VBA IDE

1. In FactoryTalk View Studio, in the Explorer window, open the graphic display you

want to write display code for.

2. From the Edit menu, select VBA Code.

For information about opening VBA Help, see page C-8.

Project
Explorer
window

Properties
window

Procedure or
Code window