<< Click to Display Table of Contents >> Navigation: Working with CanEasy > Automation in CanEasy > VBA > Icons and Context Menu |
Icons
The VBA manager uses the following icons:
Icon |
Description |
Root node. |
|
Saved project node (normal). |
|
Modified project node (not saved). |
|
Project node in design mode. |
|
Macro node. |
Menu of the root node
The context menu of root node “VBA” contains the following functions:
Menu entry |
Function |
|
New |
Creates a new macro project with a standard module.
|
|
Import... |
Import any VBA projects. |
|
Load… |
Opens an available VBA project. Select the appropriate VBA file. |
|
Remove all |
Closes all VBA projects. |
|
Visual Basic Editor... |
Opens the VBA environment. In the VBA environment, the entire functionality of Microsoft® Visual Basic® for Applications is available. |
|
Macros... |
Opens the “macros” dialog of the VBA environment. For more information, please refer to the Microsoft® Visual Basic® for applications help. |
|
COM help |
Opens the programming help document for the COM interface which is available in VBA |
Context menu of a project node
The context menu of a project node contains the following options:
Menu entry |
Function |
Design mode |
A project can exist either in execution mode (default) or in design mode. In design mode, the execution of a project is stopped, no events can be received. By default, new projects are created in execution mode. The design mode is identified in the tree by a yellow warning triangle. To activate design mode, check the menu entry “Design mode” inside the context menu. If the entry is unchecked, the project is in execution mode. |
Export… |
Exports the project using a new file name. |
Rename |
Switches the node to edit mode to change the project name. |
Visual Basic Editor... |
Opens the VBA environment. In the VBA environment, the entire functionality of Microsoft® Visual Basic® for applications is available. |
Macros... |
Opens the “macros” dialog of the VBA environment for the current project. For more information, please refer to the Microsoft® Visual Basic® for applications help. |
Remove |
Closes the project. |
Context menu of macros
The context menu of a macro contains the following options:
Menu entry |
Function |
Start Macro |
Starts the execution of the macro. If the project is in design mode, it is automatically switched to execution mode. |
Edit Macro... |
Edits the source code of the macro. If the VBA environment is not opened yet, it is opened automatically. |