Project Outline Codes

J

James

Hi,

Is there any way to programatically set the value of a Project or Resource
Outline Code e.g. add to the codes list value then set the value for a given
project or resource ?

Thanks

James
 
J

John

James,
The quick answer is "yes", however I would have to do a little research
to find which VBA method(s) to use. As an alternative have you tried
recording a macro to do what you want?

John
 
J

James

Hi John,

Recording a macro doesn't work - that's why I am looking for some help !
Being a relative newbie to coding I am looking for some pointers from some
of the experts in the stuff !

Thanks

James
 
J

John

James,
I think the method you are looking for is:
LookUpTableAdd Method
It allows you to append items to the lookup table of a custom outline
code using VBA. Look in the VBA help file for full information on the
Method's syntax.

If you are new to VBA programming and would like some good training
material, go to the Project MVP website at:
http://www.mvps.org/project/links.htm
At the very bottom of the page is a set of downloadable training modules
called:
Project 98 Visual Basic Environment Training Materials
Even though it says it is for Project 98, it is equally applicable to
all later versions of Project.

If you would like to see some VBA code samples, you can also find help
on the MVP webpage at:
http://www.mvps.org/project/vbacode.htm
Jack Dahlgren's link has a plethora of useful VBA code examples.

Hope this helps.
John
 
J

James

John,

Thanks for the feedback but isn't this code to add additional Outline Codes
to a look up list. I can't see how this will help in assigning Outline Code
values to a project plan....??

Thanks

James
 
J

John

James,
Maybe I didn't understand your initial post. I thought you were trying
to add more codes to a list. Post again, this time with a little more
detail on exactly what you are trying to do or write me direct if you
wish although posting may benefit others with a similar question.

John
 
J

jean-luc

Same problem :

We try to enter by VBA a value in enterprise Text field and Enterprise
outline code


We did that :


objTask.EnterpriseProjectText2 = "Essai"

and we get a message : Non Valid argument value





Do you have any idea ?



Jean-Luc
 

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