Loading...
Quick Links

Reply To: How to auto open Project XML files without Import Wizard dialog?

Home Forums Discussion How to auto open Project XML files without Import Wizard dialog? Reply To: How to auto open Project XML files without Import Wizard dialog?

#152107
Matt RondeauMatt Rondeau
Participant

Hi,

I think what you’re looking to accomplish is to automate MS Project and import the contents of an XML file into an existing or new project file without user intervention…

This post may be helpful: http://azlav.umtblog.com/2012/12/11/exporting-mpp-files-with-vba/

Also, I’d check out the section “Saving and Importing Project XML Data” at: http://msdn.microsoft.com/en-us/library/office/ms436148(v=office.12).aspx

(Obviously any changes you make to the XML files will need to conform to the Project XML Schema / Data Interchange format: http://msdn.microsoft.com/en-us/library/office/bb968733(v=office.14).aspx …note in the event that there is an issue or if Project believes there is an inconsistency in the XML data, unfortunately you may not have an elegant way of suppressing the XML line import error dialog–as I am not sure whether calls to thisProjApp.DisplayAlerts = False and thisProjApp.Alerts(False) cover these type of errors).