dominic999

Using Application.OpenDocument without interrupting the macro

Discussion created by dominic999 on Jul 28, 2010
Latest reply on Aug 8, 2010 by geoelement
Hi there,

I need to perform a series of actions on all the .mxd documents present in a specific directory. So I have something like this:

For Each filename in directoryListing
    Application.OpenDocument (filename)
    Action1
    Action2
    ...
Next filename


Problem is, when the macro reaches the OpenDocument command, the document is duly opened but the macro is interrupted.

Any help mostly welcome.

Outcomes