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?
 
R

Rod Gill

Hi,

This group is closing down soon, so please use the project.developer group
in future. In standard have you tried recording a macro of you manually
doing what you? If it records nothing it may not be supported, If it does
record you should have your code.

--

Rod Gill
Project MVP

NEW!! Project VBA Book, for details visit: http://www.projectvbabook.com
 

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