Need to Update Custom Field Value.

M

Maruf

Hi.
I have all the projects stored on project server (and not
in files).
I want to add/delete values of Custom Fields (NOT
Enterprie Custom Fields)from a particular project.

Can someone send me a code sample or something?

I have the following code which works for an mpp file but
is of no use to me. I can call the CustomValuesAdd method
for doing the job. But i dont know how to connect to
projectserver and get the project reference.

******************
Dim projApp As MSProject.Application
Dim Proj As MSProject.Project
Dim T As MSProject.Task

Set projApp = New MSProject.Application

projApp.FileOpen "C:\test.mpp" //Need help here

Set Proj = projApp.ActiveProject

For Each T In Proj.Tasks
If Not T Is Nothing Then
Debug.Print T.ID, T.Name
End If
Next

projApp.FileClose pjDoNotSave
projApp.Quit
Set projApp = Nothing

******************

Any help would be appreciated.

Thanks,
Maruf
 

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