K
Krizz
Hey i am using VBA (or VB.net or C#.net) to capture the ProjectBeforeSave
event and the ProjectBeforePublish event.
When i get to ProjectBeforeSave i would like to now if the publish button
was pressed or the save button was pressed.
I am using MSProject 2007 and Project Server 2007.
So basically i want to following functionality:
Private Sub MSProjApp_ProjectBeforePublish(ByVal pj As
Microsoft.Office.Interop.MSProject.Project, ByRef Cancel As Boolean) Handles
MSProjApp.ProjectBeforePublish
If CheckDbSapTasks(True) = True Then
Cancel = True
End If
End Sub
Private Sub MSProjApp_ProjectBeforeSave(ByVal pj As
Microsoft.Office.Interop.MSProject.Project, ByVal SaveAsUi As Boolean, ByRef
Cancel As Boolean) Handles MSProjApp.ProjectBeforeSave
If not publishing then
CheckDbSapTasks(False)
End If
End Sub
event and the ProjectBeforePublish event.
When i get to ProjectBeforeSave i would like to now if the publish button
was pressed or the save button was pressed.
I am using MSProject 2007 and Project Server 2007.
So basically i want to following functionality:
Private Sub MSProjApp_ProjectBeforePublish(ByVal pj As
Microsoft.Office.Interop.MSProject.Project, ByRef Cancel As Boolean) Handles
MSProjApp.ProjectBeforePublish
If CheckDbSapTasks(True) = True Then
Cancel = True
End If
End Sub
Private Sub MSProjApp_ProjectBeforeSave(ByVal pj As
Microsoft.Office.Interop.MSProject.Project, ByVal SaveAsUi As Boolean, ByRef
Cancel As Boolean) Handles MSProjApp.ProjectBeforeSave
If not publishing then
CheckDbSapTasks(False)
End If
End Sub