-
Dim aem??
Forum,
I'm getting a 'Compile error: User-defined type not defined' when attempting to run a macro. The 'Dim aem As Map' and followed by:
Create the analysis element map
Set aem = createAnalysisElementMap
This line is where the compile error occurs
Function createAnalysisElementMap(outlineLvl As Long) As Map
Should I define the Dim aem something other than map? Or could this be a reference issue? I can attach the module - wanted to ask first.
Cheers,
Cole
-
Make sure that the necessary references for the Map object are included in your VBA environment. Go to the VBA editor (press Alt + F11), then choose Tools > References and look for any missing references. If Map is part of a library, this library must be properly referenced.
-
Thanks. I did look there. How would Map be refenced in the library? I tried few options. I appreciate your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules