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 writing a program with a dialog box that when they click on the map button a shapefile will open. I wrote a program that opened a map document is it the same language as that is. Which is the following : Dim pDoc As IDocument Dim pApp As IApplication Set pDoc = New MxDocument Set pApp = pDoc.Parent

Please help!

share|improve this question

If you want to add a shapefile from a dialog box you can find instructions/code here.

You need to set your ActiveView property in order to add anything to your map:

enter image description here

share|improve this answer
Thank You so much!! – Michelle Couden Dec 6 '13 at 17:10
@MichelleCouden if that answers the question, mark it as so please. – Brad Nesom Dec 7 '13 at 2:27

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.