Global.MPT Properties

S

SpiroT

I'm having trouble defining the VBA code I need to access the properties of
the ProjectGlobal (Global.MPT). I need an example of how to access its
properties like CurrencySymbol, etc. I am able to get and change it for
VBAProject(Project1), but do not know who to activate Global.MPT)
 
J

Jan De Messemaeker

Hi SpiroT,

Most global propeties are properties of the Application object.
Best is to first have a look there.

I fould out by trying for days on end that

VBE.VBProjects(1) is the global.mpt
and that for instance
VBE.VBProjects(1).Properties("Text1") is the text1 field of the global's
project sumlary task.
VBE.VBProjects(1).filename gives you the address of the global.mpt
etcetera..

HTH
 
S

SpiroT

Yes, Amazing! Thanks, one more thing if I may...

[BTW, It is actually VBE.VBProjects(2), that I need (Global.MPT); "1" =
cached Enterprise]

How do I access and its properties (as displayed in the properties window:
AccetpNewExternalData
AllowTaskDelegation
AndMoveCompleted
etc...
 
J

Jan De Messemaeker

Hi,

Well, I do not know Server so lots of what you ask is out of bounds to me.
Still, I tried
vbe.vbprojects(1).vbcomponents(1).properties("AcceptNewExternalData")
and yesss! the thing replied False

So this is a track you can follow..

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
http://users.online.be/prom-ade/
+32-495-300 620
SpiroT said:
Yes, Amazing! Thanks, one more thing if I may...

[BTW, It is actually VBE.VBProjects(2), that I need (Global.MPT); "1" =
cached Enterprise]

How do I access and its properties (as displayed in the properties window:
AccetpNewExternalData
AllowTaskDelegation
AndMoveCompleted
etc...







Jan De Messemaeker said:
Hi SpiroT,

Most global propeties are properties of the Application object.
Best is to first have a look there.

I fould out by trying for days on end that

VBE.VBProjects(1) is the global.mpt
and that for instance
VBE.VBProjects(1).Properties("Text1") is the text1 field of the global's
project sumlary task.
VBE.VBProjects(1).filename gives you the address of the global.mpt
etcetera..

HTH

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
http://users.online.be/prom-ade/
+32-495-300 620
properties
of
 

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