Autoopen macro does'nt work in global.mpt in Project 2002/2003

  • Thread starter Jean-Luc.chantry
  • Start date
J

Jean-Luc.chantry

Hello,
In old project version we placed autoopen macro in global.mpt.
It worked OK.
In Project 2002/2003 it does'nt work. Nor in global.mpt, Nor in global
entreprise.

Any one knows that problem and have a solution ?
Thanks
Jean-Luc
Just a link
 
G

Gérard Ducouret

Hello Jean-Luc,

In the VBA module attached to ThisProject (Global.MPT), choose the "Project"
object in the drop-down list and the Open event :
Write something like that :

Private Sub Project_Open(ByVal pj As Project)
Call CaOuvre
End Sub

.... where CaOuvre is another VBA procedure (in a classical module) such as :

Sub CaOuvre()
MsgBox "MS Project is opened !"
End Sub

Gérard Ducouret
 
J

Jean-Luc.chantry

Thanks Gérard

I tried on 2003.
It did'nt work.
Can I call you again ?
Jean-Luc
 
J

JackD

I have an example on my website which should work.

http:/masamiki.com/project/macros.htm
 

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