S
Steve in Boston
Hello,
I am trying to manage a custom toolbar in Project 2003, to copy the latest
version into Global MPT on open and to delete it on exit. I don't have
project server or enterprise level mpts.
I am using Project_BeforeClose and Project_Open (below) but it is not
working. I get a compile error "Invalid Use of Property". I have
experimented and can get these subroutines to do a simple msgbox, but will
not perform the actions below nor even run another subroutine embedded in the
MPP when that routine references a project task.
Any help you can offer, or alternatives to this scheme, will be appreciated.
Thank you.
Private Sub Project_BeforeClose(ByVal pj As Project)
OrganizerDeleteItem Type:=6, FileName:="Global.MPT", Name:="XYZ Toolbar"
End Sub
Private Sub Project_Open(ByVal pj As Project)
OrganizerMoveItem Type:=6, FileName:="XYZ Project Plan.mpp",
ToFileName:="Global.MPT", Name:="XYZ Toolbar"
End Sub
I am trying to manage a custom toolbar in Project 2003, to copy the latest
version into Global MPT on open and to delete it on exit. I don't have
project server or enterprise level mpts.
I am using Project_BeforeClose and Project_Open (below) but it is not
working. I get a compile error "Invalid Use of Property". I have
experimented and can get these subroutines to do a simple msgbox, but will
not perform the actions below nor even run another subroutine embedded in the
MPP when that routine references a project task.
Any help you can offer, or alternatives to this scheme, will be appreciated.
Thank you.
Private Sub Project_BeforeClose(ByVal pj As Project)
OrganizerDeleteItem Type:=6, FileName:="Global.MPT", Name:="XYZ Toolbar"
End Sub
Private Sub Project_Open(ByVal pj As Project)
OrganizerMoveItem Type:=6, FileName:="XYZ Project Plan.mpp",
ToFileName:="Global.MPT", Name:="XYZ Toolbar"
End Sub