laptop and a wrench

不具合

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

最後に公開された状態: October 10, 2017 ArcGIS for Desktop
不具合 ID 番号 NIM062743
送信されましたNovember 11, 2010
最終更新日June 5, 2024
適用対象ArcGIS for Desktop
見つかったバージョン10.0
プログラム言語VBA
オペレーティング システムWindows OS
オペレーティング システムのバージョンXP
ステータスWill Not Be Addressed

参考情報

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

対処法

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

再現の手順

不具合 ID: NIM062743

ソフトウェア:

  • ArcGIS for Desktop

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動