J
James
Hi,
I'm using the following code to make some changes to a specific file on a
before save event (the code is in the enterprise global).
Private Sub Project_BeforeSave(ByVal pj As MSProject.Project)
If ActiveProject.Name = "<file I want to run code on>" Then
If vbResponse = vbNo Then
Exit Sub
End If
<code that I want to run>
End If
End Sub
This code works fine but generates a 424 error on the second line of the
code ( If ActiveProject.Name =....) when closing MS Project.
It surprises me that the BeforeSave Event is triggered at this time.
Also, the particular file I use it on does not show up in the visual basic
editor.
Thanks,
James
I'm using the following code to make some changes to a specific file on a
before save event (the code is in the enterprise global).
Private Sub Project_BeforeSave(ByVal pj As MSProject.Project)
If ActiveProject.Name = "<file I want to run code on>" Then
If vbResponse = vbNo Then
Exit Sub
End If
<code that I want to run>
End If
End Sub
This code works fine but generates a 424 error on the second line of the
code ( If ActiveProject.Name =....) when closing MS Project.
It surprises me that the BeforeSave Event is triggered at this time.
Also, the particular file I use it on does not show up in the visual basic
editor.
Thanks,
James