F
Fal Marrelle
I have a VBA automation which, in turn, opens a series of projects added to a
Collection, thus, where f is a valid projectname in the collection and source
is a valid version:
FileOpen "<>\" & f & "." & Source, ReadOnly := True
very occasionally (and always at the same file) I get the subject message
(Method 'FileOpen' of object '_MSProject' failed). Any ideas how I can
determine what is causing the failure? (Opening the offending file using the
user interface never fails).
I have tried promoting the file to the start of the collection (anticipating
that the error could be one of memory on the client hardware . . . even when
the offending file opens first we sometimes see failures). I also added a 5
second wait after issuing the FileOpen command - the problem persists.
Interestingly, if I resume execution after failure the line does not fail a
second time, but neither does the file open succesfully.
Collection, thus, where f is a valid projectname in the collection and source
is a valid version:
FileOpen "<>\" & f & "." & Source, ReadOnly := True
very occasionally (and always at the same file) I get the subject message
(Method 'FileOpen' of object '_MSProject' failed). Any ideas how I can
determine what is causing the failure? (Opening the offending file using the
user interface never fails).
I have tried promoting the file to the start of the collection (anticipating
that the error could be one of memory on the client hardware . . . even when
the offending file opens first we sometimes see failures). I also added a 5
second wait after issuing the FileOpen command - the problem persists.
Interestingly, if I resume execution after failure the line does not fail a
second time, but neither does the file open succesfully.