• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Appendix > Guided Tour

Guided Tour

This should take about ten minutes, and will give you an idea of how the program works.

1.
Choose Tools > Macro.

2.
Click Organizer.

3.
In the Macro Organizer window, click the Libraries tab.

4.
Click the New button and name the new library GuidedTour. Click OK.

5.
Click the Modules tab.

6.
Look in the Module list; the GuidedTour library and the default module Module1 are displayed in alphabetical order within the module list.

7.
Click the New Module button. Name the new module GuidedModule and click OK. (A module is a way of grouping macros; a library in turn groups modules.)

8.
Click the Close button of the Macro Organizer window.

9.
In the main Macro window, locate the GuidedTour library. Select the GuidedModule module you created.

10.
Click New.

11.
The Basic editing environment is displayed.

12.
Press F1 to bring up macro help. Click the Index tab and select the help for the subtraction operator, –. The corresponding help will come up in the right panel. See Figure A-3.

Figure A-3. Macro help


13.
Copy and paste the example macro into the macro writing window. Delete the Main macro will doing so. See Figure A-4.

Figure A-4. Pasting example macro from help into macro editing window


14.
Click the Run icon in the macro object bar at the top of the work area.

15.
Click it for each line of the macro. Respond as appropriate to the dialog boxes that appear. Note messages that appear in the bottom area of the window. See Figure A-5.

Figure A-5. Running the macro step by step


16.
Delete subtraction example 1 by deleting the first three lines, Sub through End Sub.

17.
Change the remaining macro. Add another value and change the final print line:

iValue3 = 7
Print iValue1 - iValue2 + (iValue1 * iValue3)
End Sub

18.
Save the macro (choose File > Save).

19.
Run the macro again.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint