MacroRecordObject

ACCPAC Common Controls

AccpacSession.MacroRecordObject

Sets up automatic macro recording of the specified view object.

Sub macroRecordObject(
hWnd As Long,
objectName As String)

Parameters

hWnd

[in] the program's main window handle

objectName

[in] the name of the object in the initialization file for this view

Remarks

An application must call this method for automatic macro recording to take place. All views associated with objectName will be included in macro recording. This method must be called before views are opened; that is, before DataSource controls are activated.

Macro recording will not work for remote sessions; that is, when IsRemote is TRUE.

Macro recording for the application will end when the passed-in handle (hWnd) is destroyed.