DoCmd method

DoCmd method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

See also         Example         Applies to

Performs the command with the indicated command ID.

Version added

4.0

Syntax

        
          object.DoCmd (intExpression)
      

object

Required. An expression that returns an Application object.

intExpression

Required Integer. The command to perform.

Remarks

Constants for Visio command IDs are declared by the Visio type library in VisUICmds and are prefixed with visCmd.

The DoCmd method works best with commands that display dialog boxes.