M
med111
How to display a “Publish Project Cancelled†Information ina
MessageBox?
In Microsoft office project professional 2007, When a Job (Project
Save, Project Publish) is completed or cancelled, a message is
displayed in the status Bar (in the bottom)
In the case when a project manager publishes his project (Fileïƒ
Publish…), but the publishing of its project is cancelled in the
server, a little information is displayed in the status bar.
If the project manager does not read what’s writing in the status Bar,
he will think that his project is successfully publishing (something
obviously wrong!). I want to display this information in a better
way.
I want that a similar information will be displayed in a message Box
(as a warning or as an error) indicating that a job (Project Save,
Project Publish) is cancelled, failed…So the user is obliged to read
the message and must click the ok bottom (in the message Box) to
continue his work.
To do this, I tried to develop a VBA event handler which will occur
when a job is cancelled. But, I didn’t find the appropriate event.
For example, there is an event Application.JobCompleted which is
declared like this:
Private Sub App_JobCompleted(ByVal bstrName As String, ByVal
bstrprojGuid As String, ByVal bstrjobGuid As String, ByVal jobType As
Long, ByVal lResult As Long)
I have tested this event. I find that it takes place when a Publish
Project is completed, but it is not executed when Publish Project is
cancelled!
I am asking if there is another event more appropriate, or if there is
another way to do it?
MessageBox?
In Microsoft office project professional 2007, When a Job (Project
Save, Project Publish) is completed or cancelled, a message is
displayed in the status Bar (in the bottom)
In the case when a project manager publishes his project (Fileïƒ
Publish…), but the publishing of its project is cancelled in the
server, a little information is displayed in the status bar.
If the project manager does not read what’s writing in the status Bar,
he will think that his project is successfully publishing (something
obviously wrong!). I want to display this information in a better
way.
I want that a similar information will be displayed in a message Box
(as a warning or as an error) indicating that a job (Project Save,
Project Publish) is cancelled, failed…So the user is obliged to read
the message and must click the ok bottom (in the message Box) to
continue his work.
To do this, I tried to develop a VBA event handler which will occur
when a job is cancelled. But, I didn’t find the appropriate event.
For example, there is an event Application.JobCompleted which is
declared like this:
Private Sub App_JobCompleted(ByVal bstrName As String, ByVal
bstrprojGuid As String, ByVal bstrjobGuid As String, ByVal jobType As
Long, ByVal lResult As Long)
I have tested this event. I find that it takes place when a Publish
Project is completed, but it is not executed when Publish Project is
cancelled!
I am asking if there is another event more appropriate, or if there is
another way to do it?