Need to close subprojects without Save prompt

T

tbone

Project doesn't really close a subproject file when you close its
window, either in the UI or via VBA. As a result, when closing the
master project file, a save prompt appears for each of these
(apparently closed) subprojects.

I need a way to prevent this behavior, because I have code that loads
one or more subproject files temporarily, in order to access some
information therein. Since this is done "under the covers", I don't
want users pestered with save prompts for files they didn't open.

I don't see a way to force a subproject file to be closed without
prompting. Does anybody have any suggestions?

thanks
tbone
 
B

Barbara - Austria

Hi tbone,

You write that you are loading subprojects temporarily by code. Do you need
to save your master project? If not you can insert sub project read-only with
“(R/O)†after the project name and close your temporary master project
without saving.

Example:
ConsolidateProjects Filenames:="<>\Projekt_01(R/O)", NewWindow:=False,
HideSubtasks:=True
….
FileSaveAs Name:="<>\TemporaryMaster", FormatID:=""

I use that to get a print view for some projects and their external links
and don't get any annoying prompts.

Regards
Barbara
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top