egun said:
No custom project guides. I tried the macros on a couple of different
machines, and got the same results. For my tests, I'm trying to open three
fairly large (4000-6000 tasks each) Project files. One of them works, the
other two don't. There are no major differences between the three files in
terms of links, structure or content. I am able to open all three files
manually without any error messages. There are dozens of external links in
the files. I have tried opening with and without readonly. Nothing makes a
difference.
Very frustrating, because otherwise the macro is very cool, and it's a big
time saver for a lot of people around here.
egun,
Another problem I have seen when a macro seems to be non-responsive is
that the macro is running fine but it is waiting for user input.
Unfortunately, another window has covered the message asking for user
input so it doesn't readily show and it makes the macro look like it got
lost. You mentioned that you have many external links. Do you also have
a separate resource pool or a master file? If either is present you may
be getting a message asking if you want to open all other files or to
update links, etc. I would think these messages would also show when the
files are opened manually, but maybe it works a little differently when
VBA is doing the opening or perhaps the sequence in which the files are
opened.
I would save the files to a separate folder so you can play with them.
If there is a pool file, try making sure it is opened before the sharer
files. If there is a master, open the subproject files first. If neither
of those are relevant, try breaking external links in groups. For
example, break half the links and see what happens. If no change, break
half the remaining, etc. If you do see a change when some of the links
are broken, iterate to find out which links are causing the problem.
Something else you might try - I've never done this so I don't know if
it will help. Create a simple Open Event macro that pops up a simple
message in each file (e.g. "xyz file is open"). It may just give you
some visual evidence as to how far the macro is getting as it opens each
project.
Hope this helps.
John
Project MVP