Mike said:
John,
Sorry about that after, I posted I realized my post wasn't clear
enough.
I'm building an add-in toolbar to MS Project. Part of the
functionality is I'm enabling the end-user to alter a table and view
from a form I created in the toolbar.
When the end-user makes the change a message box appears asking if
they 'Are sure they want to delete Number 1' field.
This message box hides behind the application on the screen and the
end-user has to select MS Project 'Windows' Taskbar on the bottom of
the screen for the message to appear.
Ideally I'd like to have the message box never show up. If that can't
happen I'd like to force it to in view so the user can just select
'OK'
Make sense?
Cole
Cole,
OK, that does make a little more sense but I'm still confused by your
last paragraph. As I said, in Project fields can't be deleted so I'm
having a little difficulty understanding how or why the alert message is
appearing. Maybe it's an added "feature" you get with an add-in (I've
never created an add-in for Project so I'm not familiar with the details
associated with same).
With a normal userform created with VBA any code generated MsgBox
statements, (as Jack suggested), will appear on "top" of the userform
where they must be addressed (i.e. "OK", "cancel", etc.) before code
processing continues. Obviously your add-in is working differently.
Just for reference there is a DisplayAlerts property for the Project
application. Whether that will work in your case, I don't know but it's
worth a try. You want the sytax:
DisplayAlerts = False
The property is automatically set back to "True" when code execution
completes.
If that doesn't help, post back. Hopefully someone with Project add-in
experience can help.
John
Project MVP