hi,
i trying insert subproject master project using project vba.
i tried microsoft sample code
activecell.task.subproject = "c:\project\mysubproject.mpp"
which runs error, no matter cell selected.
i tried
activeproject.subprojects( "c:\project\mysubproject.mpp").linktosource = true
also without success. idea how can add subprojects master? add-method not available.
thank you!
susanne
susanne,
the correct command little hidden because holdover versions of project wherein master file called consolidated project file. command want is:
consolidateprojects method
i assume aware of potential file corruption dynamic master file. if not, here best practice rules. never rename, move, overwrite, or save off of files in structure. files should ideally reside in single folder on local drive , not operated on network.
a safer approach create static master (i.e. attachtosource option = false). create single file snapshot in time of inserted subprojects. needs re-created each time want update, not prone corruption dynamic master.
hope helps.
john
Office / Project / Windows 8 / Office 2010
Comments
Post a Comment