how acess a custom field by vb.net ???

H

henriquerudiger

hello,

i need read a custom field "x"
and write x.value in another custom field "y"
I am try read in this manner
this code in vb.net

Dim p1 As New MSProject.Application
Dim a As String
a = p1.Application.CustomFieldValueListGetItem
(MSProject.PjCustomField.pjCustomProjectEnterpriseCost1,
MSProject.PjValueListItem.pjValueListValue, 0)

I am not undertand how to do this.
How I using this property or
how i acess a customfiel.value by a activeproject
using vb.net ?

I have more than 1000 projects to update, with more
than 100 custom fiels in every project.
I not wish make this in VBA. I need make a service.
In VBA is easy, but whithout VBA ?

tks
(e-mail address removed)
 
R

Rod Gill

Hi,

First you need to work with the project, so the project has to be opened.
Try recording a macro of you opening a project then copying the value. Edit
the recorded code to get what you want.

If this is a once off process VBA is quicker to write in and will run faster
as all code is in process.

--
For VBA posts, please use the public.project.developer group.
For any version of Project use public.project
For any version of Project Server use public. project.server

Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.project-systems.co.nz/
Email rodg AT project-systems DOT co DOT nz
"(e-mail address removed)"
 

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