Programming with Reflection

image\rwnprg32.gif StopRecordingMacro method


Syntax object.StopRecordingMacro Destination, [Name], [Description], [Options]



Stops recording in Reflection and saves recorded commands to a macro or to the Clipboard. The following statement stops macro recording and saves the recorded commands to a macro named "MyMacro" with no description:

Session.StopRecordingMacro rcMacro, "MyMacro"

Note: Use SaveSettings to save the settings file containing the macro.


Destination Argument type: Enumeration
Specifies the destination of the recorded code.


 Save the recorded actions as a macro in the current Reflection session. You must specify a Name if you use rcMacro. Note: Macros are not saved until you save your settings file. You can use SaveSettings to save settings files programmatically.


 Copy the recorded actions to the Clipboard. You must specify a Name if you use this value.


 Discard the recorded macro.

Name Argument type: String
This argument is required if Destination is either rcMacro or rcClipboard. If Destination is rcMacro, Name specifies the macro name. If Destination is rcClipboard, Name specifies the procedure name.

Description Argument type: String
This argument is relevant only when Destination is rcMacro. Use this for the macro description. This string can be up to 260 characters long.

Options Optional
Omit this argument; it is not currently used.



image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command