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:
doesn't work, but
does.
Is this normal? If not, what needs to be fixed?
Code:
Dim pMxDoc as IMxDocument
Set pMxDoc = ThisDocument
Dim pLayer As ILayer
Set pLayer = pMxDoc.SelectedLayer
Code:
Dim pMxDoc as esriArcMapUI.IMxDocument
Set pMxDoc = ThisDocument
Dim pLayer As esriCarto.ILayer
Set pLayer = pMxDoc.SelectedLayer
Is this normal? If not, what needs to be fixed?