Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Project Newsgroups
Project Developer
Closing subprojects without Save prompts
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="tbone, post: 4901938"] I believe I've determined that Project closes a project file when I close its window with Windows("name.mpp").Close - UNLESS that file is a subproject linked to a loaded Master project. In the latter case, the window is closed but the subproject file remains loaded. This was the cause of my earlier perceived anomaly with Projects.Count being greater than the number of visible projects loaded. Even if I close the subproject window from the UI with the close button, the same behavior is exhibited. I wrote a routine to update custom fields of the Master project file's subproject tasks from the corresponding fields of the Project Summary Task in each subproject. This requires loading the referenced subproject files (if they're not already loaded) to obtain that information. My code currently closes the window for each subproject that was not already explicitly loaded by the user. The problem here is that when a user wants to close the Master project, Save prompts appear for all the subproject files, not just the ones they loaded. I also tried loading the subproject files read-only, but the prompt still appears. I don't want Save prompts shown for any files that the user didn't explicitly load. The Project object has no Close method. How can I address this? thanks tbone [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Project Newsgroups
Project Developer
Closing subprojects without Save prompts
Top