S
ScoobyDon
BRIEF EXPLANATION:
I have 10 project managers who need several macros, where this number of
users is very small in comparison to total number of Project Managers in our
Enterprise environment. So, to limit the access to these procedures it was
decided to place them in a .mpp file saved in a network folder instead of in
the Enterprise Global.
So a single macro was written and given to these 10 project managers. The
single procedure will open (read-only) and hide this .mpp file. The .mpp file
has an on open event to build a menu which contained all the procedures they
needed. So when they went to use a macro in the new menu it was calling the
procedure from the hidden .mpp file.
These 10 PMs use this method with great success, they get what they need, if
they need something changed in a procedure I do it one location and everyone
gets it. Without having to place these modules in the Enterprise Global.
PROBLEM:
So the hidden .mpp file is never closed by the user. When they exit the
application the hidden .mpp would close without a prompt to save, because
they never made any changes to it. However, it seems that if it is left open
for an extended period of time, when they exit the application they get a
prompt to save the hidden .mpp file.
I tried a number of things:
BeforeClose: ThisProject.Saved = True, ActiveProject.Saved = True... Write
to the Saved property (apparently MS Project Saved Property is read-only)
BeforeClose: FileCloseEx pjDoNotSave (Won't work since your closing it
already)
ApplicationBeforeClose:
Unhide / Activate the .mpp window then
FileCloseEx pjDoNotSave (Didn't work either, thought for sure this one would)
When closing a project file, how do I avoid / supress the save prompt?
I have 10 project managers who need several macros, where this number of
users is very small in comparison to total number of Project Managers in our
Enterprise environment. So, to limit the access to these procedures it was
decided to place them in a .mpp file saved in a network folder instead of in
the Enterprise Global.
So a single macro was written and given to these 10 project managers. The
single procedure will open (read-only) and hide this .mpp file. The .mpp file
has an on open event to build a menu which contained all the procedures they
needed. So when they went to use a macro in the new menu it was calling the
procedure from the hidden .mpp file.
These 10 PMs use this method with great success, they get what they need, if
they need something changed in a procedure I do it one location and everyone
gets it. Without having to place these modules in the Enterprise Global.
PROBLEM:
So the hidden .mpp file is never closed by the user. When they exit the
application the hidden .mpp would close without a prompt to save, because
they never made any changes to it. However, it seems that if it is left open
for an extended period of time, when they exit the application they get a
prompt to save the hidden .mpp file.
I tried a number of things:
BeforeClose: ThisProject.Saved = True, ActiveProject.Saved = True... Write
to the Saved property (apparently MS Project Saved Property is read-only)
BeforeClose: FileCloseEx pjDoNotSave (Won't work since your closing it
already)
ApplicationBeforeClose:
Unhide / Activate the .mpp window then
FileCloseEx pjDoNotSave (Didn't work either, thought for sure this one would)
When closing a project file, how do I avoid / supress the save prompt?