How to add enterprise resource to child project from Master Projec

S

Smugliy

Hi , If I am using EnterpriseResourceGet method I can add enterptise resource
to Active Project .
But in my case Active Project is a master (its include other projects) and I
want to add enterprise resource to child project.
Is it possible without opening the child project separately ?

How can I change for example Active Project to be one of the child projects
or copy enterprise resource from master to child ???

Thanks a lot
 
J

Jan De Messemaeker

Hi,

I use this logic to access subprojects:

For each SubP in activeproject.subprojects
set Smallp=subp.sourceproject
....
next subp

Hope this helps,
--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
 
S

Stephen Sanderlin

S

Stephen Sanderlin

I don't know if this will work in this case. This code does not work for
me:



Sub test()

Dim SubP As Subproject

Dim SmallP As Project



For Each SubP In ActiveProject.Subprojects

Set SmallP = SubP.SourceProject



Call SmallP.Application.EnterpriseResourceGet(5)

Call SmallP.Application.FileSave

Next SubP

End Sub



--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com
 
J

Jan De Messemaeker

Hi,

I never worked with the Enterpriseresourceget method but I understood it was a property of a PROJECT object. If so, that should be smallp.enterpriseresourceget (i.e. without the application)
HTH

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
"Stephen Sanderlin" <stephen NS-DOT sanderlin A-NS-T msprojectexperts DOT-NS com> wrote in message I don't know if this will work in this case. This code does not work for me:



Sub test()

Dim SubP As Subproject

Dim SmallP As Project



For Each SubP In ActiveProject.Subprojects

Set SmallP = SubP.SourceProject



Call SmallP.Application.EnterpriseResourceGet(5)

Call SmallP.Application.FileSave

Next SubP

End Sub



--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com
 
S

Stephen Sanderlin

Hey Jan,



According to the VBA documentation at
http://msdn.microsoft.com/en-us/library/bb238001.aspx, it's a method of
an Application object.

--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com





<
Hi,



I never worked with the Enterpriseresourceget method but I understood it
was a property of a PROJECT object. If so, that should be
smallp.enterpriseresourceget (i.e. without the application)

HTH


--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf

"Stephen Sanderlin" <stephen NS-DOT sanderlin A-NS-T msprojectexperts
DOT-NS com> wrote in message

I dont know if this will work in this case This code does not work for
me:



Sub test()

Dim SubP As Subproject

Dim SmallP As Project



For Each SubP In ActiveProject.Subprojects

Set SmallP = SubP.SourceProject



Call SmallP.Application.EnterpriseResourceGet(5)

Call SmallP.Application.FileSave

Next SubP

End Sub



--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com
 
J

Jan De Messemaeker

Ahah! I'll give it a further thought.
Sorry for the misunderstanding

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
"Stephen Sanderlin" <stephen NS-DOT sanderlin A-NS-T msprojectexperts DOT-NS com> wrote in message Hey Jan,



According to the VBA documentation at http://msdn.microsoft.com/en-us/library/bb238001.aspx, it's a method of an Application object.

--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com






Hi,



I never worked with the Enterpriseresourceget method but I understood it was a property of a PROJECT object. If so, that should be smallp.enterpriseresourceget (i.e. without the application)

HTH


--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf

"Stephen Sanderlin" <stephen NS-DOT sanderlin A-NS-T msprojectexperts DOT-NS com> wrote in message
I dont know if this will work in this case This code does not work for me:



Sub test()

Dim SubP As Subproject

Dim SmallP As Project



For Each SubP In ActiveProject.Subprojects

Set SmallP = SubP.SourceProject



Call SmallP.Application.EnterpriseResourceGet(5)

Call SmallP.Application.FileSave

Next SubP

End Sub



--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com
 
J

Jan De Messemaeker

Hi,

This is (alas) perfectly true: I give up.
It has to be said that IMHO the original qustion is rather pointless: why not open the child project - BtW since it is already technically "open" through the master this is very rapid so why not?

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
"Stephen Sanderlin" <stephen NS-DOT sanderlin A-NS-T msprojectexperts DOT-NS com> wrote in message I do not believe that you can do this from a master project. This method is only valid against the active project. You would have to open the child project separately and make the change there.

--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com
 
S

Smugliy

Thanks


Jan De Messemaeker said:
Hi,

This is (alas) perfectly true: I give up.
It has to be said that IMHO the original qustion is rather pointless: why not open the child project - BtW since it is already technically "open" through the master this is very rapid so why not?

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
"Stephen Sanderlin" <stephen NS-DOT sanderlin A-NS-T msprojectexperts DOT-NS com> wrote in message I do not believe that you can do this from a master project. This method is only valid against the active project. You would have to open the child project separately and make the change there.

--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com
 

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