Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to add a new form that a programmer sent me for a specific UIButtonControl. When I import the form into Visual Basic following the steps they sent me, it imports the form as a module instead of a new form. when I try to use the new UIButtonControl button that I created with the module, it gives me this error: Compile Error. Invalid outside procedure. Both the programmer and myself feel it is because visual basic is bringing the form in as a module instead of a form, can anyone help me fix this please?

share|improve this question
are you both developing in VBA? Or has the programmer created the form in VB6 and you are importing it into VBA? In VBA, this should be a straight forward export - import (the form export generated 2 files .frm and .frx) – Jakub Dec 16 '10 at 13:35

If you are both using VBA you could have the programmer save the form and the code in the document. He could then send you the document complete with the UI button and the form so you could test it on your end.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.