ObjectVerb Method

Instructs the active object to perform an action.

Syntax

expression**.ObjectVerb(Verb)**

*expression   *     Optional. An expression that returns an Application object.

Verb    Optional Long. The action that the active object should perform.

Remarks

For a list of the actions an object can perform, select the object, and then click Object on the Edit menu.

In Microsoft Windows 2000 or Microsoft Windows XP, to determine the number associated with a particular action, run the command "regedit" by clicking the Start button and then clicking Run. The file RegEdit.exe is in your WINNT folder.

In Microsoft Windows Me, to determine the number associated with a particular action, run the command "regedit" by clicking the Start button and then clicking Run. The file RegEdit.exe is in the Options\Cabs directory of your Windows folder.

In Microsoft Windows 95, Microsoft Windows 98, or Microsoft Windows NT 4.0, to determine the number associated with a particular action, run the command "regedit" by clicking the Start button and then clicking Run. The file RegEdit.exe is in your Windows folder.

For Microsoft Windows NT 3.5 or 3.51, run "regedt32" by using the Run command on the File menu. The file RegEdt32.exe is in the System32 directory of your Windows directory.

Negotiate the registry tree to HKEY_CLASSES_ROOT\Name.DocumentName\protocol\StdFileEditing\Verb\number, where Name is the name of the application, DocumentName is the name of the document, and number is the key for an action. For Microsoft Project 2002, for example, HKEY_CLASSES_ROOT\MSProject.Project.9\protocol\StdFileEditing\Verb\0 is the key for the "edit" command.

Applies to | Application Object

See Also | ObjectChangeIcon Method | ObjectConvert Method | ObjectInsert Method | ObjectLinks Method