Using the PerfectScript class to change a Quattro Pro document
The PerfectScript class lets you automate specific and repetitive tasks. The members of the PerfectScript class are the product commands used in conjunction with the PerfectScript language. You can change a Quattro Pro document using the PerfectScript class.
To change a Quattro Pro document by using the PerfectScript class |
1.
|
|
Click Tools Visual Basic Visual Basic Editor.
|
2.
|
|
In the Project explorer Docker window, double-click VBAProject (NoteBk1) Quattro Pro objects ThisNotebook in the list of categories.
|
3.
|
|
In the Notebok1 code module window, type Public Sub and the name of the sub.
|
4.
|
|
Below End Sub, type Private Sub and the name of the sub.
|
5.
|
|
Press ENTER.
|
You will notice that VBA automatically adds End Sub to you code
|
6.
|
|
Within the Private Sub, type PerfectScript. and choose the necessary commands.
|
7.
|
|
Within the Public Sub, type the name of the Private Sub.
|
•
|
|
If you declare the first method as private, you will not be able to run it from Quattro Pro.
|
•
|
|
For more information about VBA, see the Microsoft Visual Basic Help in the Visual Basic Editor.
|