Shg...
I had thought I went though the workbooks and added the option explicit
Anyway I have now completed adding this in. I now understand that checking the activeworkbook is useless since the code is being ran in that workbook.
Thank You,
Hmmm....
Anyway
Leith, Thanks for spending the time to look into this...
However:
Originally Posted by
Leith Ross
Hello Realniceguy,
Persistence pays off. I found a Microsoft Knowledge Base article that details why this happens.
You cannot use the Workbook_BeforeClose event to close another Excel workbook
Additional Information:
BeforeClose Event
Occurs before the project closes. If the project has changed since it was opened, but has not been saved, this event occurs before the user is prompted to save the project.
Syntax
Private Sub Project_BeforeClose(ByVal pj As MSProject.Project)
pj The project that is being closed.
Remarks
Project events do not occur when the project is embedded in another document or application.
I understand now why the message repeats when trying to close. But what I don't understand is what you are saying here.
Are you saying that this is another way of doing the procedure?
or it just isn't gonna happen?
Do you guys have any other suggestions on something else that may work?
Thanks again for your time. Mike...
You Guys are always a great help!!!!
Bookmarks