Stop Workbook from closing.
I have been playing around with running a macro before a sheet is closed, and
I have found it very useful.
I don't know if this is possible of not, so I would apreciate your advice,
when a user attempts to close the workbook, I want my macro to run a check,
and if a specific cell has no value in it, I want a popup to say "please
enter vallue in cell..." When the user clicks ok, instead of exiting the
workbook, I would like it to close the popup and keep the workbook open for
the user to add a value.
I can do all of this exept the part where I want it to keep the workbook open.
Of course as soon as you click ok the workbook closes.
Is there any way to do this, or am I just hitting my head against the
wall....?
Any help is greatly appreciated.
Melissa.
|