Project 2003 VBA

D

Dale Howard [MVP]

SharkTracker --

You could use code similar to the following:

Sub Enterprise_Resources()

Dim r As Resource

For Each r In ActiveProject.Resources

If r.EnterpriseUniqueID = -1 Then
MsgBox r.Name & " is local.", vbOKOnly, "Is it enterprise?"
Else: MsgBox r.Name & " is enterprise.", vbOKOnly, "Is it enterprise?"

End If

Next r

End Sub

In the preceding code, you will discover that the Enterprise Unique ID field
equals -1 for all local resources, and is a unique value greater than 0 for
all enterprise resources. Hope this helps.
 
S

SharkTracker

That will do it. Thanks a lot.

Dale Howard said:
SharkTracker --

You could use code similar to the following:

Sub Enterprise_Resources()

Dim r As Resource

For Each r In ActiveProject.Resources

If r.EnterpriseUniqueID = -1 Then
MsgBox r.Name & " is local.", vbOKOnly, "Is it enterprise?"
Else: MsgBox r.Name & " is enterprise.", vbOKOnly, "Is it enterprise?"

End If

Next r

End Sub

In the preceding code, you will discover that the Enterprise Unique ID field
equals -1 for all local resources, and is a unique value greater than 0 for
all enterprise resources. Hope this helps.
 

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