ERROR
When running VBA code within ArcMap or ArcCatalog that includes references to Network Analyst objects, you get the following error message when you attempt to run the code:
'Compile error: User-defined type not defined'
esriNetworkAnalyst.olb and esriNetworkAnalystUI.olb are not included in the VBA list of references.
Get help from ArcGIS experts
Download the Esri Support App