Quantcast
Channel: Forums - ArcGIS for Desktop - Installation, Configuration
Viewing all articles
Browse latest Browse all 504

VBA in ArcGIS 10.0 Requires Library Name

$
0
0
I just started working with the VBA extension in ArcGIS 10.0. Any ArcObjects reference I use must include the library name, or it throws an error. For Example:
Code:

Dim pMxDoc as IMxDocument
Set pMxDoc = ThisDocument
Dim pLayer As ILayer
Set pLayer = pMxDoc.SelectedLayer

doesn't work, but
Code:

Dim pMxDoc as esriArcMapUI.IMxDocument
Set pMxDoc = ThisDocument
Dim pLayer As esriCarto.ILayer
Set pLayer = pMxDoc.SelectedLayer

does.

Is this normal? If not, what needs to be fixed?

Viewing all articles
Browse latest Browse all 504

Trending Articles