Share via


VisUICmds Constants

Visio Automation Reference

UI command ID constants, to be used in conjunction with the CmdNum property of various objects. These constants also correspond to scope IDs passed with the EnterScope and ExitScope events, and to command ranges passed to the Event.GetFilterCommands and Event.SetFilterCommands methods, as well as to commands passed to the Application.DoCmd method.

Constant Value

visCmdABarAutoHeight

1684

visCmdABarAutohide

1652

visCmdABarHide

1650

visCmdABarToggleFloat

1651

visCmdAcquireImages

1868

visCmdAddConnectPt

1263

visCmdAddControlPt

1266

visCmdAddDataRecordset

1998

visCmdAddTextShape

1181

visCmdAlignBox

1768

visCmdAlignObjectBottom

1201

visCmdAlignObjectCenter

1197

visCmdAlignObjectLeft

1196

visCmdAlignObjectMiddle

1200

visCmdAlignObjectRight

1198

visCmdAlignObjectTop

1199

visCmdAllowThemes

2056

visCmdApplyDataGraphic

2017

visCmdApplyDataGraphicAfterLink

2092

visCmdApplyThemeToDoc

2048

visCmdApplyThemeToPage

2047

visCmdAppMaximize

1864

visCmdAppMinimize

1865

visCmdAppRestore

1904

visCmdAutoConnectToggle

2091

visCmdAutoGenerateDataGraphics

2105

visCmdBreakOLELink

1900

visCmdBrowseSampleDrawings

1645

visCmdBullets

1633

visCmdCancelInPlaceEditing

1602

visCmdCenterDrawing

1202

visCmdCloseWindow

1361

visCmdConnectorEffectCurved

1945

visCmdConnectorEffectRightAngle

1943

visCmdConnectorEffectStraight

1944

visCmdConnPoints

1774

visCmdCreateEditMaster

1899

visCmdCreateNewDrawing

1812

visCmdCreateShortcut

1791

visCmdCropObject

1192

visCmdCropTool

1449

visCmdCustomPropertySets

1675

visCmdCustProp

1658

visCmdCustPropDefine

1695

visCmdDataAutoConnect

2098

visCmdDataAutoLink

2046

visCmdDataAutoLinkWiz

2045

visCmdDataColumnSettingsDlg

2043

visCmdDataExplorerWindow

2044

visCmdDataRecordsetProperties

2072

visCmdDataRecordsetSetCommand

2037

visCmdDataRecordsetSetPrimaryKey

2038

visCmdDataRefresh

2021

visCmdDataRefreshAddConflict

2094

visCmdDataRefreshConfigDlg

2022

visCmdDataRefreshDeleteConflict

2095

visCmdDataRefreshDlg

2019

visCmdDataRefreshResolveConflict

2103

visCmdDataSelectorDlg

2011

visCmdDataUnlinkRow

2058

visCmdDataUnlinkShape

2057

visCmdDecreaseIndent

1093

visCmdDecreaseParaSpacing

1095

visCmdDelConnectPt

1265

visCmdDelControlPt

1268

visCmdDeleteBackWord

1905

visCmdDeleteComment

1920

visCmdDeleteDataGraphic

2067

visCmdDeleteDataRecordset

1999

visCmdDeleteForwardWord

2114

visCmdDeleteTheme

2052

visCmdDeselectAll

1213

visCmdDesignMode

1388

visCmdDetectAndRepair

1890

visCmdDistributeBottom

1238

visCmdDistributeCenter

1233

visCmdDistributeHSpace

1231

visCmdDistributeLeft

1232

visCmdDistributeMiddle

1237

visCmdDistributeRight

1234

visCmdDistributeTop

1236

visCmdDistributeVSpace

1235

visCmdDlgCustomFit

1536

visCmdDragDuplicate

1184

visCmdDrawFillStyle

1123

visCmdDrawGlue

1125

visCmdDrawAddGuide

1180

visCmdDrawingExplorer

1721

visCmdDrawingTools

1946

visCmdDrawLineStyle

1122

visCmdDrawOval

1183

visCmdDrawSnap

1124

visCmdDrawRect

1182

visCmdDrawRegion

1742

visCmdDrawTextStyle

1121

visCmdDrawZoom

1126

visCmdDRConnectionTool

1226

visCmdDRConnectorTool

1225

visCmdDRLineTool

1221

visCmdDropManyOnPage

1869

visCmdDropManyLinked

2108

visCmdDropOnPage

1246

visCmdDropOnStencil

1244

visCmdDropOnText

1243

visCmdDROvalTool

1224

visCmdDRPencilTool

1220

visCmdDRPointerTool

1219

visCmdDRQtrArcTool

1222

visCmdDRRectTool

1223

visCmdDRRotateTool

1228

visCmdDRSplineTool

1311

visCmdDRTextTool

1227

visCmdDuplicateDataGraphic

2106

visCmdDuplicateTheme

2050

visCmdEditRedoMultiple

1683

visCmdEditTheme

2049

visCmdEditUndoMultiple

1682

visCmdDynamicGrid

1765

visCmdDynConnReroute

1829

visCmdEditConvertObject

1439

visCmdEditFind

1043

visCmdEditInsertField

1032

visCmdEditInsertObject

1031

visCmdEditLinks

1030

visCmdEditOpenObject

1029

visCmdEditPasteLink

1028

visCmdEditPasteSpecial

1027

visCmdEditRedo

1018

visCmdEditRepeat

1019

visCmdEditReplace

1179

visCmdEditSelectSpecial

1026

visCmdEditUndo

1017

visCmdEmailRouting

1588

visCmdExportDatabaseAddon

1891

visCmdFileCheckin

1787

visCmdFileCheckout

1788

visCmdFileChooseTemplates

1583

visCmdFileClose

1003

visCmdFileExit

1016

visCmdFileImport

1007

visCmdFileLastFile1

1012

visCmdFileLastFile2

1013

visCmdFileLastFile3

1014

visCmdFileLastFile4

1015

visCmdFileLastFile5

1561

visCmdFileLastFile6

1569

visCmdFileLastFile7

1570

visCmdFileLastFile8

1571

visCmdFileLastFile9

1572

visCmdFileNew

1001

visCmdFileNewBlankDrawing

1579

visCmdFileNewBlankDrawingMetric

1671

visCmdFileNewBlankDrawingUS

1672

visCmdFileNewBlankStencil

1582

visCmdFileNewBlankStencilMetric

1673

visCmdFileNewBlankStencilUS

1674

visCmdFileNewStencilDlg

1580

visCmdFileOpen

1002

visCmdFileOpenStencil

1442

visCmdFilePrint

1010

visCmdFileSave

1004

visCmdFileSaveAs

1005

visCmdFileSaveAsWebPage

1785

visCmdFileSaveWorkspace

1006

visCmdFileSummaryInfoDlg

1009

visCmdFileUndoCheckout

2109

visCmdFirstTile

1515

visCmdFitCurve

1538

visCmdFormatAllTextProps

1642

visCmdFormatBehavior

1071

visCmdFormatBlock

1070

visCmdFormatCorners

1334

visCmdFormatCustPropDef

1687

visCmdFormatCustPropEdit

1312

visCmdFormatDefineStyles

1064

visCmdFormatDoubleClick

1118

visCmdFormatFill

1066

visCmdFormatInkDlg

1955

visCmdFormatLine

1065

visCmdFormatPainter

1271

visCmdFormatParagraph

1068

visCmdFormatProtection

1072

visCmdFormatShadow

1333

visCmdFormatSpecial

1073

visCmdFormatStyle

1063

visCmdFormatTabs

1069

visCmdFormatText

1067

visCmdFullScreenMode

1492

visCmdGoToPageToolbar

1635

visCmdGrid

1767

visCmdGuides

1771

visCmdHeaderFooter

1720

visCmdHelpAboutVisio

1100

visCmdHelpContents

1092

visCmdHelpMode

1386

visCmdHelpSearch

1809

visCmdHelpShapeBasics

1822

visCmdHelpTemplates

1586

visCmdHideAllToolbars

1726

visCmdHideDocumentStencil

1689

visCmdHyperlinkHier

1611

visCmdHyperlinkList

1719

visCmdIconBucketTool

1543

visCmdIconLassoTool

1544

visCmdIconLeftColor

1143

visCmdIconPencilTool

1145

visCmdIconRightTool

1144

visCmdIconSelectNet

1545

visCmdImageProperties

1887

visCmdImagePropertiesDlg

1883

visCmdIncreaseIndent

1094

visCmdIncreaseParaSpacing

1096

visCmdINETAddToFavorites

1506

visCmdINETCopyHyperlink

1610

visCmdINETDeleteHlink

1609

visCmdINETDiagrammingResources

1606

visCmdINETEditHyperlink

1619

visCmdINETGoBack

1599

visCmdINETGoForward

1598

visCmdINETKnowledgeBase

1605

visCmdINETOpenHLink

1607

visCmdINETOpenHLinkNewWnd

1608

visCmdINETPasteAsHyperlink

1620

visCmdINETUserSearchPage

1595

visCmdINETVisioHomePage

1596

visCmdINETVisioOnTheWeb

1831

visCmdINETVisioSolutionsLibrary

1604

visCmdInkCustomizePen

1664

visCmdInkEraser

1970

visCmdInkReviewPen

1971

visCmdInkStockPen0

1973

visCmdInkStockPen1

1974

visCmdInkStockPen2

1975

visCmdInkStockPen3

1976

visCmdInkStockPen4

1977

visCmdInkTool

1661

visCmdInsertAutoCADAddOn

1521

visCmdInsertClipArt

1497

visCmdInsertComment

1501

visCmdInsertControlDlg

1522

visCmdInsertDataMap

1282

visCmdInsertHyperLink

1585

visCmdInsertMicrosoftGraph

1499

visCmdInsertTextBox

2006

visCmdInsertVertTextBox

2007

visCmdInsertWordArt

1498

visCmdIntersect

1453

visCmdJoin

1533

visCmdLastTile

1516

visCmdLayerDlg

1446

visCmdLayerSetupDlg

1448

visCmdLayoutDynamic

1493

visCmdLinkRowToShape

1997

visCmdMasterExplorer

1916

visCmdMasterSetup

1343

visCmdMDIMaximize

1901

visCmdMDIMinimize

1902

visCmdMDIRestore

1903

visCmdModConnectPt

1264

visCmdModControlPt

1267

visCmdMovConnectPt

1269

visCmdMove1D

1186

visCmdMove2D

1187

visCmdMoveComment

1502

visCmdMoveObject

1185

visCmdMsoAutoCorrect

1872

visCmdMsoAutoCorrectDlg

1866

visCmdMsoAutoFormat

1873

visCmdMsoCustomItem

1896

visCmdMSOInsertEquation

1646

visCmdMSOInsertSymbol

1504

visCmdMSOInsertSymbolDlg

1505

visCmdMsoMediaGallery

1885

visCmdNewDefDocBlankDrawing

1906

visCmdNewFromExisting

1897

visCmdNewThemeColors

2065

visCmdNewThemeEffects

2064

visCmdNextMarkup

1914

visCmdNextTile

1514

visCmdNextWindow

1886

visCmdObjectAddToGroup

1053

visCmdObjectAlignObjects

1049

visCmdObjectBringForward

1045

visCmdObjectBringToFront

1046

visCmdObjectCombine

1061

visCmdObjectConnectObjects

1050

visCmdObjectConvertToGroup

1055

visCmdObjectDistributeDlg

1230

visCmdObjectFlipHorizontal

1058

visCmdObjectFlipVertical

1057

visCmdObjectFragment

1062

visCmdObjectGroup

1051

visCmdObjectHelp

1428

visCmdObjectInfoDlg

1425

visCmdObjectRemoveFromGroup

1054

visCmdObjectReverse

1059

visCmdObjectRotate90

1056

visCmdObjectSendBackward

1047

visCmdObjectSendToBack

1048

visCmdObjectSwapEnds

1870

visCmdObjectUngroup

1052

visCmdObjectUnion

1060

visCmdOffsetDlg

1387

visCmdOfficeDiagnostics

1890

visCmdOpenActiveObject

1601

visCmdOpenCommentForEdit

1503

visCmdOpenInVisio

1491

visCmdOptionsColorPaletteDlg

1082

visCmdOptionsDeletePages

1079

visCmdOptionsEditBackground

1075

visCmdOptionsEditDrawing

1074

visCmdOptionsGoToDrawing

1077

visCmdOptionsNewPage

1078

visCmdOptionsPageSetup

1076

visCmdOptionsPreferences

1081

visCmdOptionsProtectDocument

1083

visCmdOptionsReorderPages

1080

visCmdOptionsSnapGlueSetup

1084

visCmdPageMeasureUnitsDlg

1274

visCmdPagesList

1654

visCmdPanObject

1193

visCmdPanZoom

1653

visCmdPasteShortcut

1790

visCmdPauseRecordingMacro

1778

visCmdPreviousMarkup

1915

visCmdPreviousTile

1513

visCmdPrintPage

1443

visCmdPrintPreview

1490

visCmdProgRefHelp

1584

visCmdRecalcObjectWH

1146

visCmdRecordNewMacro

1775

visCmdRelayoutShapes

2068

visCmdRemoveDataGraphicFromSel

2107

visCmdRemoveThemeFromSel

2119

visCmdRemoveVBAFromActiveDoc

1590

visCmdRHI

2009

visCmdRHIDlg

2010

visCmdReOrderPage

1795

visCmdResearchLookUp

1967

visCmdResearchTranslate

1968

visCmdResumeRecordingMacro

1779

visCmdReviewerVisibilityAll

1836

visCmdReviewerVisibilityNone

1919

visCmdRightDragCancel

1881

visCmdRightDragCopy

1879

visCmdRightDragLink

1880

visCmdRightDragMove

1878

visCmdRotate90Clockwise

1494

visCmdRotateObject

1190

visCmdRulerGridDlg

1318

visCmdRulSub

1766

visCmdRunAddOnDlg

1484

visCmdRunAddonMenu

1090

visCmdSaveAsFixedFormatDlg

2117

visCmdSelectionModeExtend

1909

visCmdSelectionModeLasso

1908

visCmdSelectionModeRect

1907

visCmdSendAsMail

1292

visCmdSendToExchange

1589

visCmdSetAddMarkup

1744

visCmdSetCharColor

1404

visCmdSetCharSizeDown

1406

visCmdSetCharSizeUp

1405

visCmdSetDynConnAppearanceCurved

1895

visCmdSetDynConnAppearanceDefault

1893

visCmdSetDynConnAppearanceStraight

1894

visCmdSetDynConnLineJumpStyle_2pt

1713

visCmdSetDynConnLineJumpStyle_3pt

1714

visCmdSetDynConnLineJumpStyle_4pt

1715

visCmdSetDynConnLineJumpStyle_5pt

1716

visCmdSetDynConnLineJumpStyle_6pt

1717

visCmdSetDynConnLineJumpStyle_Arc

1709

visCmdSetDynConnLineJumpStyle_Gap

1710

visCmdSetDynConnLineJumpStyle_Page

1708

visCmdSetDynConnLineJumpStyle_Square

1711

visCmdSetDynConnLineJumpStyle_Triangle

1712

visCmdSetDynConnRerouteAsNeeded

1697

visCmdSetDynConnRerouteFreely

1696

visCmdSetDynConnRerouteNever

1698

visCmdSetDynConnRerouteOnCrossover

1837

visCmdSetDynConnRoutingStyle

1700

visCmdSetFillColor

1385

visCmdSetFillPattern

1399

visCmdSetFillShadow

1379

visCmdSetHeaderFooter

1858

visCmdSetIndexInStencil

1871

visCmdSetLanguageDlg

1888

visCmdSetLineColor

1359

visCmdSetLineCornerStyle

1358

visCmdSetLineEnds

1357

visCmdSetLinePattern

1356

visCmdSetLineWeight

1355

visCmdSetPageLineJumpCode_D

1703

visCmdSetPageLineJumpCode_Horz

1705

visCmdSetPageLineJumpCode_Last

1707

visCmdSetPageLineJumpCode_None

1704

visCmdSetPageLineJumpCode_Vert

1706

visCmdSetPagePlow

1699

visCmdShapeActions

1309

visCmdShapeComment

1686

visCmdShapeCommentDelete

1688

visCmdShapeCommentDlg

1685

visCmdShapeExplorer

1389

visCmdShapeGalleryAddOn

1867

visCmdShapeGeo

1769

visCmdShapeHand

1772

visCmdShapeIntersect

1830

visCmdShapeLayerToolbar

1634

visCmdShapeStudioAddOn

1985

visCmdShapesWindow

1669

visCmdShapeTransparency

1875

visCmdShapeTransparencyDlg

1874

visCmdShapeVert

1773

visCmdSize1D

1188

visCmdSize2D

1189

visCmdSizeObjects

1925

visCmdSizePos

1670

visCmdSizeTextBlock

1194

visCmdSpellingChange

1889

visCmdSpellingOptionsDlg

2042

visCmdSSWindowAddSection

1384

visCmdSSWindowChangeRowType

1383

visCmdSSWindowCollapse

1250

visCmdSSWindowDeselect

1253

visCmdSSWindowExpand

1251

visCmdSSWindowPasteFunction

1382

visCmdSSWindowPasteName

1381

visCmdSSWindowSelect

1252

visCmdSSWindowShowSection

1380

visCmdSSWindowShowTraceWindow

1781

visCmdStampTool

1424

visCmdStartRecordingMacro

1776

visCmdStenActivate

1458

visCmdStenAutoArrange

1483

visCmdStenCleanup

1106

visCmdStenClose

1452

visCmdStenDrawingExplorer

1796

visCmdStenEditDrawing

1102

visCmdStenEditIcon

1101

visCmdStenEditOff

1681

visCmdStenEditOn

1680

visCmdStenEditToggle

1679

visCmdStenIconAndDetail

1892

visCmdStenIconAndName

1480

visCmdStenIconOnly

1481

visCmdStenImageMaster

1105

visCmdStenNameMaster

1103

visCmdStenNameOnly

1482

visCmdStenNamesUnderIcons

2005

visCmdStenNewMaster

1104

visCmdStenProperties

1678

visCmdStenSave

1676

visCmdStenSaveAs

1677

visCmdStopRecordingMacro

1777

visCmdSubtract

1454

visCmdSWAccept

1140

visCmdSWAddSectionDlg

1116

visCmdSWCancel

1139

visCmdSWChangeRowTypeDlg

1114

visCmdSWDeleteRow

1115

visCmdSWDeleteSection

1117

visCmdSWExpandRow

1718

visCmdSWFormula

1141

visCmdSWInsertRow

1112

visCmdSWInsertRowAfter

1113

visCmdSWPasteFunctionDlg

1111

visCmdSWPasteNameDlg

1110

visCmdSWShapeActionDlg

1444

visCmdSWShowFormulas

1108

visCmdSWShowSectionsDlg

1109

visCmdSWShowToggle

1142

visCmdSWShowValues

1107

visCmdTaskPane

1896

visCmdTaskPaneDataGraphic

2024

visCmdTaskPaneDocumentManagement

1972

visCmdTaskPaneResearch

1969

visCmdTaskPaneReviewer

1939

visCmdTaskPaneThemeColors

2054

visCmdTaskPaneThemeEffects

2055

visCmdTaskTogglePreviewSize

2053

visCmdTextAllCaps

1862

visCmdTextBlockTool

1451

visCmdTextBold

1131

visCmdTextDoubleStrikeThrough

1951

visCmdTextDoubleULine

1863

visCmdTextEditRuler

1810

visCmdTextEditState

1214

visCmdTextFont

1129

visCmdTextHAlignCenter

1408

visCmdTextHAlignDistribute

1952

visCmdTextHAlignJustify

1412

visCmdTextHAlignLeft

1407

visCmdTextHAlignRight

1409

visCmdTextItalic

1132

visCmdTextRotate90

1098

visCmdTextSize

1130

visCmdTextSmallCaps

1133

visCmdTextStrikeThrough

1741

visCmdTextStyle

1128

visCmdTextSubscript

1135

visCmdTextSuperScript

1134

visCmdTextULine

1136

visCmdTextVAlignBottom

1422

visCmdTextVAlignMiddle

1414

visCmdTextVAlignTop

1413

visCmdToggleDocumentStencil

1690

visCmdToolbarsDlg

1500

visCmdToolsArrayShapesAddOn

1354

visCmdToolsInventory

1335

visCmdToolsLayoutShapesDlg

1574

visCmdToolsMacroDlg

1577

visCmdToolSnapLines

1807

visCmdToolsRunVBE

1576

visCmdToolsSpelling

1270

visCmdTrim

1534

visCmdTrustCenterDlg

2104

visCmdTurnToNextPage

1148

visCmdTurnToPrevPage

1147

visCmdUFEditClear

1023

visCmdUFEditCopy

1021

visCmdUFEditCut

1020

visCmdUFEditDuplicate

1024

visCmdUFEditPaste

1022

visCmdUFEditSelectAll

1025

visCmdUpdateColumnsInLinkedShapes

2061

visCmdView100

1035

visCmdView150

1036

visCmdView200

1037

visCmdView400

1280

visCmdView50

1279

visCmdView75

1034

visCmdViewConnections

1042

visCmdViewCustom

1038

visCmdViewDirectionToggle

2012

visCmdViewFitInWindow

1033

visCmdViewGrid

1040

visCmdViewGuides

1041

visCmdViewLeftToRight

2013

visCmdViewPageBreaks

1509

visCmdViewRightToLeft

2014

visCmdViewRulers

1039

visCmdViewStatusBar

1044

visCmdWindowCascadeAll

1086

visCmdWindowNewWindow

1085

visCmdWindowShowDrawPage

1091

visCmdWindowShowMasterObjects

1089

visCmdWindowShowShapeSheet

1088

visCmdWindowTileAll

1087

visCmdZoomArea

1218

visCmdZoomIn

1216

visCmdZoomInIgnoreSel

1917

visCmdZoomLast

1495

visCmdZoomOut

1217

visCmdZoomOutIgnoreSel

1918

visCmdZoomPageWidth

1496

visCmdZoomPt

1215

visCmdZoomSingleTile

1512