home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _8044A07CB5C24CB8A038C615FCD58E69 < prev    next >
Text File  |  2003-03-07  |  5KB  |  130 lines

  1. Using macros in Corel Presentations
  2.  
  3. You can use macros to perform repetitive or complex tasks automatically. Macros are scripts that contain a list of instructions, and they can perform most of the tasks that you would normally perform using keystrokes, mouse actions, and menu commands.
  4.  
  5. In this section, you'll learn about
  6.  
  7.   understanding macros
  8.   
  9.   working with macros
  10.   
  11. For more information about using macros, see "Reference: Using macros in Corel Presentations."
  12.  
  13. Understanding macros
  14.  
  15. A macro can consist of programming commands, product commands, and comments. Macro tasks consist of instructions called statements. There are several kinds of statements: assignments, conditions, and loops. For example, the commands
  16.  
  17. SetBrushShape (Circle!)
  18.  
  19. SetBrushWidth (25)
  20.  
  21. set the properties for the Paint Brush tool. Each command represents one instruction or statement. The simplest macro consists of only one statement. Complex macros have hundreds of statements. The sequence of statements determines how a macro performs its tasks.
  22.  
  23. There are two types of macros that can be used in Corel Presentations:
  24.  
  25.   A PerfectScript macro, which is stored with a .wcm file extension. This macro is useful if you want to interact with other WordPerfect Office applications, such as Quattro Pro or WordPerfect. For information about PerfectScript macros, see "Generating and editing Corel Presentations macros by using PerfectScript."
  26.   
  27.   Microsoft Visual Basic for Applications (VBA), which lets you develop scripts that are saved in specific projects that use VBA programming language. You can access the VBA editor from within Corel Presentations. For information about VBA macros, see "Working with Corel Presentations macros using Visual Basic for Applications (VBA)."
  28.   
  29. Working with macros
  30.  
  31. One way to create a macro is to record and save a task in Corel Presentations. When you record a macro, you convert actions into macro commands, which are stored and can be played back. You can then play a macro to repeat a sequence of steps for a task that you have recorded or written, including project and global VBA macros. You can only play a project macro from the document that was used to create it. For information about VBA macros in Corel Presentations, see "Working with Corel Presentations macros using Visual Basic for Applications (VBA)." While recording or playing a macro, you can pause, resume, or stop it.
  32.  
  33. To record a macro
  34.  
  35. 1    Click Tools  Macro  Record.
  36.  
  37. 2    Choose the drive and folder where you want to save the macro.
  38.  
  39. 3    Type a filename in the Filename box.
  40.  
  41. 4    Click Save.
  42.  
  43. 5    Perform the actions you want to record.
  44.  
  45. 6    Click Tools  Macro  Stop.
  46.  
  47. To play a macro
  48.  
  49. 1    Click Tools  Macro  Play.
  50.  
  51. 2    Choose the drive and folder where the macro is stored.
  52.  
  53. 3    Choose a filename.
  54.  
  55. 4    Click Open.
  56.  
  57. To play a project VBA macro
  58.  
  59. 1    Click Tools  Visual Basic  Play.
  60.  
  61. 2    Choose Project from the Macros in list box.
  62.  
  63. 3    Type a macro name in the Macro name list box.
  64.  
  65. 4    Click Run.
  66.  
  67. To play a global VBA macro
  68.  
  69. 1    Click Tools  Visual Basic  Play.
  70.  
  71. 2    Choose Global from the Macros in list box.
  72.  
  73. 3    Type a macro name in the Macro name box.
  74.  
  75. 4    Click Run.
  76.  
  77. To pause, resume, or stop recording or playing a macro
  78.  
  79.  
  80.  
  81. To    Do the following
  82.  
  83. Pause or resume a macro    Click Tools  Macro  Pause.
  84.  
  85. Stop a macro    Click Tools  Macro  Stop.
  86.  
  87.  
  88.  
  89. Note
  90.  
  91.   A check mark beside the Pause menu command indicates that the macro is paused.
  92.   
  93. Tip
  94.  
  95.   You can also stop a macro recording by disabling the checkmark beside the Record menu command.
  96.   
  97. Reference: Using macros in Corel Presentations
  98.  
  99. Several macros are included with Corel Presentations.
  100.  
  101. Playing macros included with Corel Presentations
  102.  
  103. When you installed Corel Presentations, the shipping macros listed in the following table were included to help you automate and simplify several common tasks.
  104.  
  105.  
  106.  
  107. Play    To
  108.  
  109. chngfnt.wcm    Change the font face and color throughout a slide show.
  110.  
  111. headfoot.wcm    Add a header or footer to a document, which includes the date, filename, slide number, slide title, and any other information you specify.
  112.  
  113. imgemap.wcm    Create HTML Image Map codes for any existing bitmaps, which allows you to use them on the Internet.
  114.  
  115. macedit.wcm    Edit a macro in a Corel Presentations text box.
  116.  
  117. mastconv.wcm    Convert older Corel Presentations masters to Corel Presentations 11 masters.
  118.  
  119. obj2back.wcm    Move selected object(s) on the slide layer to the background layer of a slide show master.
  120.  
  121. shw2wpg.wcm    Convert all the slides in a slide show to separate .wpg files.
  122.  
  123. textanim.wcm    Convert text to curves and apply an animation effect to each character.
  124.  
  125. textbttn.wcm    Create a three dimensional button graphic with text you type in.
  126.  
  127.  
  128.  
  129.  
  130.