Resource.Generic

J

Jim Zeeb

There is a Generic Column that can be inserted in a Resource View.
Looking at the MSP-2002 object model, that property is not exposed.
How do I access this property?
 
J

John

Jim,
Depending on what you mean by "generic" there are several spare fields
(e.g. Text, Number, etc.) that can be used in Task and Resource type
views. For example, there is a Text1 field for tasks and a Text1 field
for resources. They are NOT the same Text1 field. To reference the Task
Text1 field the syntax could be:
ActiveProject.Tasks(x).Text1 [where "x" is the task index]
A similar construct applies to Resources

Hope this helps.
John
 
J

Jim Zeeb

There is an actual resource Yes/No field called "Generic" that indicates that
the resource is a generic resource as opposed to a real person. It is this
specific resource property that I am trying to access in VBA code.
 
J

John

Jim,
Maybe I'm just not up to speed on something. Where do you see the
Generic field (i.e. view/form/etc.)? What version of Project are you
using?

John
 
J

Jim Zeeb

MSP-2002, in the ResourceSheet, if you double-click on a resource, this
brings up the ResourceInformation dialog. In the General tab, middle-right
there is a Generic checkbox. I'm trying to access this property, but it's
not listed in the ObjectBrowser.
 
J

John

Jim,
Something is fishy. Unless Project 2002 has an extra checkbox that
didn't exist in Project 2000 and was deleted in Project 2003, I do not
find a Generic checkbox under any of the Resource Information tabs.
Perhaps it is a feature available only with the Pro or server version of
Project neither of which I have.

Sorry I can't help.
John
 
R

Rod Gill

Hi Jim, long time no talk, how are you?

This property is confusing as its name isn't obvious, but the following in
the immediate window works for me (VBA help actually worked!!)

?activeproject.Resources(1).EnterpriseGeneric

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

Jim Zeeb

Rod,
Thanks for the help. I usually do an ObjectBrowser.Find, but obviously I
didn't in this case. I have a new non IBM client now with a new set of
challenges.
....jz
 

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