Accessing Project Summary Task fields in VBA

T

tbone

I'd like to be able to copy over certain fields from a subproject into
the Master project. The Master project's Calculate event is called
when a subproject is added, so this is the perfect time to do this.

However, the info I want to bring over is from the subproject's
project summary task (line 0) and I don't see how to access that info.

Thanks
tbone
 
J

John

tbone said:
I'd like to be able to copy over certain fields from a subproject into
the Master project. The Master project's Calculate event is called
when a subproject is added, so this is the perfect time to do this.

However, the info I want to bring over is from the subproject's
project summary task (line 0) and I don't see how to access that info.

Thanks
tbone

tbone,
Pretty straightforward. Properties of the project summary task are
accessed using:
ActiveProject.ProjectSummaryTask.[property]

This information is readily available by using the object browser in the
VB Editor.

John
Project MVP
 
T

tbone

John,

Thanks. I forgot about using the Object Browser.

tbone

tbone said:
I'd like to be able to copy over certain fields from a subproject into
the Master project. The Master project's Calculate event is called
when a subproject is added, so this is the perfect time to do this.

However, the info I want to bring over is from the subproject's
project summary task (line 0) and I don't see how to access that info.

Thanks
tbone

tbone,
Pretty straightforward. Properties of the project summary task are
accessed using:
ActiveProject.ProjectSummaryTask.[property]

This information is readily available by using the object browser in the
VB Editor.

John
Project MVP
 
J

John

tbone said:
John,

Thanks. I forgot about using the Object Browser.

tbone
tbone,
You're welcome. The object browser is the first place I always go when I
need info on VBA syntax.

John
Project MVP
tbone said:
I'd like to be able to copy over certain fields from a subproject into
the Master project. The Master project's Calculate event is called
when a subproject is added, so this is the perfect time to do this.

However, the info I want to bring over is from the subproject's
project summary task (line 0) and I don't see how to access that info.

Thanks
tbone

tbone,
Pretty straightforward. Properties of the project summary task are
accessed using:
ActiveProject.ProjectSummaryTask.[property]

This information is readily available by using the object browser in the
VB Editor.

John
Project MVP
 

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