Skip to content

Edit a Macro

Use the Visual Basic Editor to edit InfoConnect macros.

You can open the Visual Basic editor using the Visual Basic command and browse the projects to locate the macro you want to edit. (See Create a Macro in the Visual Basic Editor.)

Or, use the following procedure to select a macro from a list of macros in your session and open the Visual Basic Editor directly in the code for the selected macro.

To edit a macro

  1. Start a session.

  2. Open the Visual Basic Editor. The steps depend on your user interface mode.

    User Interface Mode Steps
    InfoConnect Ribbon For IBM3270 and IBM5250 terminals: On the Macros ribbon, from the Advanced group, click Visual Basic.
    For all other terminals: On the Tools ribbon, in the Macros group, click Visual Basic.
    InfoConnect Browser On the InfoConnect menu, choose Tools, Macro and then Visual Basic.
    TouchUX Tap the Wrench icon and then under Macro, select Visual Basic.
    Classic MDI From the Macro menu, select Visual Basic Editor.
                                                                                                                                        |
    

    If you see the Run Macro dialog box, select InfoConnect Workspace Macro.

    The Macros dialog box appears.

  3. In the Macro name box, select the name of the macro to edit and click Edit.

  4. Use the Visual Basic Editor to edit and test your changes.

  5. From the File menu, choose Save.