Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

ConsolidateProjects Method Not Executing

$
0
0

Using Rod Gill's execellent reference on Project VBA programming (which I've been using for years), I setup a "project control center" in Project 2010 containing hyperlinks on each task line to copies of .mpp files on my local hard drive.  I've tested each link by right-clicking and selecting hyperlink / open to verify the links were valid.  But when I run the macro to consolidate the project plans into a single .mpp file, the resulting file is empty.  I've stepped through the code and it seems that the following command is not being executed, nor is it throwing any errors:

Application.ConsolidateProjects Filenames:=Path, _
                NewWindow:=False, AttachToSources:=False, _
                HideSubtasks:=True

I tried checking for an error code after this command, but no error was generated.  I've tried adding "MSProject" to the command to explicitly reference the MSProject object library, but that didn't make any difference.  The only thing I can see that seems suspect is that I get a warning message when I test the hyperlinks stating that the location may be unsafe and hyperlinks may be harmful to my computer, and prompting me if I want to continue.  The IT department recently upgraded my Project version from 2007 to 2010 (were definitely not in the early adopter demographic), and this is the first time I've tried running this particular macro since the upgrade.

Is there something in the settings of Project 2010 that would prevent the consolidateprojects method from executing?  Could the warning message about hyperlinks (which I never saw when I was running Project 2003 or 2007) be causing the command to fail? 

Dan Keen


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>