Consulting

Results 1 to 3 of 3

Thread: Dim aem??

  1. #1

    Question 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

  2. #2
    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.

  3. #3
    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
  •