laptop and a wrench

Bogue

Custom Microsoft Visual Basic for Applications (VBA) toolbars are not recognized using the ICommandBars.Find method.

Dernière publication: October 10, 2017 ArcGIS for Desktop
Numéro d’ID de bogue NIM062743
EnvoiNovember 11, 2010
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée10.0
Langue du programmeVBA
Système d’exploitationWindows OS
Version du système d’exploitationXP
StatutWill Not Be Addressed

Informations supplémentaires

VBA is not supported. Please migrate all code to .NET

Solution de contournement

Sub FindBar() Dim pCmdBars As ICommandBars Set pCmdBars = ThisDocument.CommandBars Dim pNewBarX As ICommandBar Set pNewBarX = pCmdBars.Find("MyBar") ' If Find method did not get the new command bar above, retry ' with the prefix "Normal". If pNewBarX Is Nothing Then Set pNewBarX = pCmdBars.Find("Normal.MyBar") ' If Find method did not get the new command bar above, retry ' with the prefix "Project". If pNewBarX Is Nothing Then Set pNewBarX = pCmdBars.Find("Project.MyBar") If pNewBarX Is Nothing Then MsgBox "pNewBarX is still Nothing" End If End If End If pNewBarX.Add ArcID.File_AddData pNewBarX.Add ArcID.PanZoom_FullExtentEnd Sub

Étapes pour reproduire

ID de bogue: NIM062743

Logiciel:

  • ArcGIS for Desktop

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement