FileSaveAs problem in Project Standard 2007

M

muted.p

Hello!

I try to execute this code in MS Project Standard 2007:

Sub Main()
Dim XMLDoc

Set XMLDoc = CreateObject("MSXML2.DOMDocument")

Application.FileSaveAs FormatID:="MSProject.XMLDOM",
XMLName:=XMLDoc

MsgBox XMLDoc.XML

End Sub

But I get an empty value of XMLDoc.XML.

The same code works properly in MS Project Professional 2003.


What's wrong? Is anybody can help me?
 

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