You are here:
About adding custom commands and toolbars
Customizing and developing with ArcGIS
Writing macros using VBA
You don't have to use to create custom commands and toolbars—in fact, in some cases, your custom commands and toolbars may require you to use another development environment. You can create custom objects in any programming language that supports the Microsoft Component Object Model (COM). Custom commands or toolbars created outside VBA are often distributed as ActiveX . If you have created some custom commands and toolbars or someone else has given you an ActiveX DLL containing custom commands and toolbars, you can easily add these objects to ArcMap or ArcCatalog. After adding a custom object to ArcMap or ArcCatalog, you can use it as you would any core command or toolbar.
How to add custom commands and toolbars
- Click the Tools menu and click Customize.
- Click Add from file.
- Navigate to the file containing the custom command.
- Click the file and click Open. The Added Objects dialog box appears, reporting which new objects have been registered with ArcMap or ArcCatalog.
- Click OK.
- Click the Toolbars tab.
- Check the custom toolbar that was added or check the toolbar to which you want to add the custom command.
- Click the Commands tab.
- Click the custom command's category in the Categories list.
- Click and drag the command from the Commands list and drop it on the toolbar.
- Click Close.
- If a search string is entered in the 'Show commands containing' text field, you may not see the newly added command(s) immediately after dismissing the Added Object dialog. Cancel the command list filtering by clearing the search string in the text field.
Please visit the Feedback
page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.