Working with the VBA Editor

When you work in the VBA Editor, you can create a new object, such as a dialog box, which is known as a form. You can add controls, such as a check box or a text box. You can set the object’s properties in the Properties dialog box. You can also set the object’s properties at run time by programming a method.

Each document that you create with VBA has a corresponding project. In order to customize your document with VBA coding procedures, you must open the project file in the Visual Basic Editor.

For more detailed information on constructing code procedures and setting properties, consult the “Microsoft Visual Basic Help” from the Help menu in the Visual Basic Editor.

For descriptions and code samples of properties, methods, and events in the CorelDRAW X4 Object Model, you can access the CorelDRAW X4 VBA Help.


To create a project using Visual Basic Editor

CorelDRAW btnbacktotop Working with the VBA Editor
1.
 
Click Tools CorelDRAW onestep Working with the VBA Editor Macros CorelDRAW onestep Working with the VBA Editor Macro editor.
2.
 
Use the Visual Basic Editor to create a project.

CorelDRAW note Working with the VBA Editor

 
For more information about working with VBA, consult the “Microsoft Visual Basic Help” from the Help menu in the Visual Basic Editor.
 
You can also access the “Microsoft Visual Basic Help” by pressing F1.

To access the CorelDRAW X4 VBA Help

CorelDRAW btnbacktotop Working with the VBA Editor
1.
 
Click Tools CorelDRAW onestep Working with the VBA Editor Macros CorelDRAW onestep Working with the VBA Editor Macro editor.
2.
 
Press F2.
The Object browser displays.
3.
 
Choose CorelDRAW from the Library list box.
4.
 
Press F1.

Working with the VBA Editor