laptop and a wrench

Erro

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

Última Publicação: October 10, 2017 ArcGIS for Desktop
Número de ID do Erro NIM062743
EnviadoNovember 11, 2010
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS for Desktop
Versão encontrada10.0
Idioma do programaVBA
Sistema OperacionalWindows OS
Versão do Sistema OperacionalXP
StatusWill Not Be Addressed

Informações Adicionais

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

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: NIM062743

Software:

  • ArcGIS for Desktop

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download