Attachmate Reflection 2014 .NET API Reference
StopMacroRecording Method (IMacro)


The location to which the macro is saved. MacroDestinationOption.Document saves the macro to the session document's VBA project. MacroDestinationOption.CommonProject saves the macro to the Common VBA project. MacroDestinationOption.Clipboard copies the macro script to the Windows Clipboard.
The name of the saved macro. This parameter is ignored if saveLocation is Clipboard.
Stops the macro recorder in the current terminal session and saves the macro.
Syntax
'Declaration
 
Sub StopMacroRecording( _
   ByVal saveLocation As MacroDestinationOption, _
   ByVal macroName As String _
) 
'Usage
 
Dim instance As IMacro
Dim saveLocation As MacroDestinationOption
Dim macroName As String
 
instance.StopMacroRecording(saveLocation, macroName)
void StopMacroRecording( 
   MacroDestinationOption saveLocation,
   string macroName
)

Parameters

saveLocation
The location to which the macro is saved. MacroDestinationOption.Document saves the macro to the session document's VBA project. MacroDestinationOption.CommonProject saves the macro to the Common VBA project. MacroDestinationOption.Clipboard copies the macro script to the Windows Clipboard.
macroName
The name of the saved macro. This parameter is ignored if saveLocation is Clipboard.
Exceptions
ExceptionDescription
System.ArgumentException Thrown if the macro name is null, empty, or contains invalid characters.
Requirements

Target Platforms: Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP, Microsoft Windows Server 2003 Terminal Services, Microsoft Windows Server 2008 Terminal Services

See Also

Reference

IMacro Interface
IMacro Members

Send Feedback