communicate from Word with MS Project

N

noname

Hello,

I work with Word 2000 and Project 98 and try to
communicate from Word with Project. I have another
application where I communicate from Excel to Project
which works. The same code in Word is not possible,
because the program stops when reading the first Project
command.
Does anybody know if the communication from Excel to
Project is different from the communication from Word to
Project?

The code in Excel is:
Dim Projekt As Object
'start Project.
Set Projekt = CreateObject("MSProject.Project")

Thanks in advance
Anne
 
A

anne

Hi,

unfortunately it works not the same way. Even if I have
now a communication between Word and Project (Project file
is opened and I can fetch other dates) I cannot
use "tasks" in Project. I get the error
message "userdefined type undefined" in the following line:
For Each t In projekt.Application.ActiveProject.Tasks
If Not t Is Nothing Then
If t.milestone = True Then
...
end if
end if
next t

Has anybody an idea?
Anne
 

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