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