beautypg.com

Run vba script – Hudson Robotics SoftLinx 5.0 User Manual

Page 22

background image

22

Run VBA Script


The Run VBA Script step allows advanced users to create their own function which they may use in
protocols. Users are only limited by the scope of VBA as to what they are able to create and utilize.

To use this step, users must open VBA and create functions. To do this:

- Click on the open VBA icon in the toolbar.

- Press Alt + F11 on the main SoftLinx Protocol Editor

- Place a VBA Code Activity on the active protocol and click "Open VBA Script."

When placing a VBA script step onto the protocol, the following window will appear:

Users must select the VBA module which the commands are defined. Users can then select the function or
sub they wish to run under "Select Macro". These two combo boxes are read-only lists, which can be
refreshed by clicking the "Reload Modules" button, or when the form is first opened. The list of modules is
generated from all modules that are saved in the Instruments\VBA Script folder. All local users share the
same module list.