Vba commands, Chapter 9 – Rockwell Automation FactoryTalk Historian SE ProcessBook 3.2 User Guide User Manual

Page 319

Advertising
background image

Chapter 9

301

Visual Basic for Applications in
FactoryTalk Historian ProcessBook

Rockwell Automation licenses Visual Basic for Applications (VBA) from
Microsoft in order to provide an integrated development environment. This
is the same VBA that is used in Microsoft Office, Visio, AutoCAD, Great
Plains Dynamics, and many other applications.

In FactoryTalk Historian ProcessBook, each display has a VBA project
associated with it. You can write scripts that execute in response to events
in FactoryTalk Historian ProcessBook, either from user actions or data
updates. Also use VBA to automate routine tasks or to cause changes in a
display when data changes.

The Visual Basic toolbar includes three command buttons (page 301):
Visual Basic Editor, Run Macro, and Design Mode.

Use of VBA in FactoryTalk Historian ProcessBook is documented in the
VBA language reference. You can reach the two FactoryTalk Historian
ProcessBook type libraries through the Visual Basic Editor.

VBA Commands

Access VBA through the VBA toolbar, or by clicking Tools > Macro:

Visual Basic Editor

Switches to VBA Editor window.

Run Macros

Opens the Macros dialog box, which provides a way to select, debug,

and run existing VBA scripts.

Advertising