Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enterprise Project Outline Code

36 views
Skip to first unread message

Vadim Roulnov

unread,
Jul 16, 2003, 9:34:09 AM7/16/03
to
How to get the value of Enterprise Project Outline Code from within VBA? I
couldn't find corresponding property or method of Project object.

Thank you,
-Vadim


Lawrence Chen

unread,
Jul 17, 2003, 2:44:11 AM7/17/03
to

Aha ! this is small question to MVP. Though I am not.
I find a chance to contribute to this community.

I found there's 4 properties of "Task Object" in VBA
object of MS Project manual

OutLineChildren
OutLineLevel
OutLineNumber
OutLineParent

You may try them. If don't work.
At worst, you may make some code to parse those OutLine
Code.

>.
>

Lawrence Chen

unread,
Jul 17, 2003, 2:44:13 AM7/17/03
to

Aha ! this is small question to MVP. Though I am not.
I find a chance to contribute to this community.

I found there's 4 properties of "Task Object" in VBA
object of MS Project manual

OutLineChildren
OutLineLevel
OutLineNumber
OutLineParent

You may try them. If don't work.
At worst, you may make some code to parse those OutLine
Code.

>.
>

Vadim Roulnov

unread,
Jul 17, 2003, 5:12:05 AM7/17/03
to
Thank you, but unfortunately none of the properties listed concerns
ENTERPRISE PROJECT outline code.

-Vadim

"Lawrence Chen" <Lawr...@construction.Taiwan.China> wrote in message
news:07b901c34c2e$d4981890$a301...@phx.gbl...

Rod Gill

unread,
Jul 17, 2003, 5:27:19 AM7/17/03
to
Hi,

Try the following in the immediate window:

?activeproject.ProjectSummaryTask.EnterpriseOutlineCode1

--
Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
"Vadim Roulnov" <v...@ultersys.ru> wrote in message
news:Oc$Le75SD...@tk2msftngp13.phx.gbl...

Vadim Roulnov

unread,
Jul 17, 2003, 6:27:59 AM7/17/03
to
Hi,

Thank you, I tried. Unfortunately, it provides code for summary task, not
for project.

-Vadim

"Rod Gill" <rodg at project-systems dot co dot nz> wrote in message
news:O1nffWET...@TK2MSFTNGP12.phx.gbl...

Rod Gill

unread,
Jul 17, 2003, 5:13:11 PM7/17/03
to
The project Summary task is at the project level, so I'm not sure exactly
what you are seeing using this code.

--
Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
"Vadim Roulnov" <v...@ultersys.ru> wrote in message

news:u7BV93ET...@tk2msftngp13.phx.gbl...

Evgeniy

unread,
Aug 4, 2003, 9:52:14 AM8/4/03
to
Hi.

Dim tsk As msproject.Task
MsgBox (tsk.GetField(pjTaskEnterpriseProjectOutlineCode1))

It works for ANY task, returns THE SAME.

Regards,
Evgeniy.

"Vadim Roulnov" <v...@ultersys.ru> wrote in message
news:Oc$Le75SD...@tk2msftngp13.phx.gbl...

Vadim Roulnov

unread,
Aug 5, 2003, 5:28:00 AM8/5/03
to
Many thanks, Evgeniy!

It really works! It returns the same code for any task of a project, to be
exact. It is so easy, thought, nobody but you could answer me. Great!

Thank you again - this is one more brick for our common building :))

-Vadim


"Evgeniy" <e...@ultersys.ru> wrote in message
news:OJ5Rp9oW...@tk2msftngp13.phx.gbl...

Robert Miskuf

unread,
Aug 15, 2003, 4:32:17 AM8/15/03
to
Hi.
I have similar problem but in JScrit. I can get value by GetField
method but I can't set value by SetField method :
objectMSProject.Tasks.Item(1).SetField(188744589,"Value") - it
throws exception "Object Error".
objectMSProject.Tasks.Item(1).GetField(188744589) - it works fine.

I have no idea why it doesn't work...

Thanks for help,
Robert

"Evgeniy" <e...@ultersys.ru> wrote in message news:<OJ5Rp9oW...@tk2msftngp13.phx.gbl>...

0 new messages