BlueZone Plus VBA


Using BlueZone Plus VBA

In order to run BlueZone Plus VBA, you must install BlueZone Plus VBA using the BlueZone InstallShield Wizard.

SEE Installing BlueZone VBA for more information.

Once BlueZone Plus VBA have been successfully installed, BlueZone Plus VBA is accessed by selecting Macro from the BlueZone MenuBar.

NOTE  Once BlueZone Plus VBA is installed, the native BlueZone Macro feature will be disabled and replaced by BlueZone Plus VBA.

The first time you launch a BlueZone session, a VBA project (.bvp) will automatically be created using the same name as the configuration file that launched the BlueZone session.  A BlueZone Macro ToolBar will appear, and the BlueZone Plus VBA menu will look similar to the one shown here:


BlueZone VBA Menu Items

New

New is used to create a new BlueZone Plus VBA project.  You can create a project with any name you wish by selecting New from the BlueZone Plus VBA Macro menu.

A standard Windows file dialog will be presented.  Choose any name you wish and click the Open button.  A BlueZone Plus VBA project with that name will be created.  The new project name will now appear at the top of the BlueZone Plus VBA menu.

Open

Open is used to open an existing BlueZone Plus VBA project.  Only one BlueZone Plus VBA project can be active at a time.

Save

Save is used to save the currently active BlueZone Plus VBA project.

Save As

Save As is used to save the currently active BlueZone Plus VBA project under a different name.

Close

Close is used to "close down" BlueZone Plus VBA.  If you are not going to be using BlueZone Plus VBA for a while you may want to close it down so it is not active.

ToolBar

ToolBar is a toggle used to either turn on or off the BlueZone Plus VBA Macro ToolBar.

Macros

Macros is used to display the BlueZone Plus VBA Macro dialog which will display all of the existing macros in the currently active BlueZone Plus VBA project.

Record New Macro

Record New Macro is used to start the recording of a new BlueZone Plus VBA macro.

Visual Basic Editor

Visual Basic Editor is used to launch the Visual Basic Editor or sometimes called the IDE.

Properties

Properties is used to access the configurable properties of BlueZone Plus VBA.  The configurable properties of BlueZone Plus VBA are:

Auto Play ----

ToolBar ----

Use the following three options to control what features show on the VBA ToolBar.

The Add, Rename and Delete buttons are used to add macros to the VBA Toolbar.  When you add a macro, a button will also be assigned to that macro.


Creating a BlueZone Macro Project

To create a project:

  1. Select Macro:New from the MenuBar.

  2. Give the project a name, and click the Open button.  BlueZone Plus VBA project names can contain spaces.

  3. You will be prompted to the create the file.  Click the Yes button.

The name of the project will be displayed at the top of the Macro menu as shown in the above example.  You can now start recording macros which will be part of the newly created project.


The BlueZone Plus VBA Macro Dialog

The BlueZone Plus VBA Macro Dialog is used to run, debug, edit and delete BlueZone Plus VBA macros.

To launch the BlueZone Plus VBA Macro dialog, select Macros from the Macro menu.  The Macros dialog will be displayed as shown:

NOTE  Only macros that are part of the active BlueZone Plus VBA project will be displayed.

Dialog Buttons

Run

The Run button is used to run BlueZone Plus VBA macros.

To run a BlueZone Plus VBA macro:

  1. Choose the desired macro from the list and click the Run button.

  2. The macro will now run.

Cancel

The Cancel button is used to close the BlueZone VBA Plus Macro dialog.

Step Into

The Step Into button is used for debugging purposes and will launch the Visual Basic Editor in the debug mode.

To step into a BlueZone Plus VBA macro:

  1. Choose the desired macro from the list and click the Step Into button.

  2. The Visual Basic Editor will launch in the debug mode.

  3. You can start debugging the macro.

Edit

The Edit button is used for editing purposes and will launch the Visual Basic Editor in the edit mode.

To edit a BlueZone Plus VBA macro:

  1. Choose the desired macro from the list and click the Edit  button.

  2. The Visual Basic Editor will launch in the edit mode.

  3. You can start editing the macro.

Create

The Create button is used if you want to create a macro from scratch inside the Visual Basic Editor.

To create a macro from scratch:

  1. Enter the name of the macro you want to create in the Macro name edit box.

  2. Click the Create button.

  3. The Visual Basic Editor will launch.

  4. You can start creating the macro.

Delete

The Delete button is used to delete a macro.

To delete a macro:

  1. Select the desired macro from the list.

  2. Click the Delete button.

  3. The macro will be deleted.


Recording a BlueZone Plus VBA Macro

To record a macro:

  1. Select Record New Macro from the Macro menu or click the Record Macro button on the BlueZone Macro ToolBar.  The Record Macro dialog will be displayed as shown:

  1. Give the macro a name and an optional description.  Macro names can not contain spaces.

  2. Choose whether or not you want to create a Toolbar Button for this macro.

  3. Choose whether or not you wish for the macro to Auto-Play on Connect.

  4. Choose whether or not you want to Edit Macro when Done Recording.

  5. Click the OK button.

  6. Start entering the keystrokes that create the macro.

  7. When you are finished recording, select Stop Macro Recording from the Macro menu or click the Stop Recording macro button on the BlueZone Macro ToolBar.


Related Topics:

VBA Macro ToolBar

Visual Basic Editor