Skip to content

Creating and Using VBA Macros

In InfoConnect, you can create and run Visual Basic for Applications (VBA) macros to simplify and automate routine tasks. Visual Basic Macros are supported for all terminal session types.

You can create macros two ways:

  • Click Record Macro, perform the tasks you want to automate, and then save the recorded steps in a macro.

    Use this method to create simple macros that automate interaction with host applications. (You cannot record interaction with Web applications or interaction with InfoConnect settings.)

  • Open the Visual Basic Editor and type in the commands for the macro.

    Use this method to create complex macros that perform InfoConnect actions and interact with other applications.

A common approach for creating a macro is to record it and then fine-tune it using the Visual Basic Editor. For more information about editing and programming Visual Basic macros, see the InfoConnect VBA Guide ( Help > VBA Guide )

InfoConnect supports running macros created with Extra!, legacy InfoConnect, and legacy Reflection products.

You can also run macros created using other applications, including Rumba, IBM Personal Communications, OpenText HostExplorer, and Brandon Systems\Jolly Giant QWS3270.

Note

  • To run Extra! macros, or macros from other products, you must install the appropriate Compatibility feature. These are available in the installer feature tree under 3270/5250 | Compatibility or UNIX and OpenVMS | Compatibility.

  • All ALC, UTS, and T27 terminals sessions support running CASL macros—no separate installer feature is required for this support.