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

This post is related to Run a Python Script when opening an MXD?

I would like a python script to run every time a .mxd is opened. However, the link above uses VBA to do it, which ESRI suggests migrating away from....

I am looking for way to do it with python.


share|improve this question
up vote 3 down vote accepted

Stick with VBA in 10.0 as it's the only way to (easily) do it, 10.1 has Python Add-Ins which will let you run Python when you open a document (newDocument, openDocument events).

share|improve this answer
Links in answer are broken but I found what I needed to do this here. – PolyGeo Jan 23 '13 at 10:36

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.