Article ID: 159964
Article Last Modified on 10/10/2006
APPLIES TO
- Microsoft Excel 97 Standard Edition
- Microsoft Excel 95 Standard Edition
- Microsoft Excel 5.0 Standard Edition
This article was previously published under Q159964
SYMPTOMS
When you run a Visual Basic for Applications macro in Microsoft Excel 97,
if the macro uses the MsgBox function to display a message box on the
screen, the pointer may appear as an hourglass or as the arrow pointer.
When you dismiss the message box, the pointer behaves normally again.
This behavior may lead you to believe that Microsoft Excel 97 has stopped
responding, or is waiting for some event to occur.
CAUSE
When you display a message box, the pointer behaves slightly differently
in Microsoft Excel 97 than it does in earlier versions of Microsoft Excel.
When you run a Visual Basic for Applications macro, if you use the MsgBox
function to display a message box on the screen, macro processing halts
for as long as the message box remains on the screen. When you click OK,
the macro continues to run.
This behavior is by design of Microsoft Excel.
NOTE: If you run the macro from within the Visual Basic Editor, or if you
run the macro by clicking a toolbar button, the pointer does not appear as
an hourglass.
RESOLUTION
If the pointer appears as an hourglass when you display a message box in
Microsoft Excel 97, move the pointer inside the message box.
NOTE: If the pointer changes into a arrow pointer, and you can click a
button in the message box, Microsoft Excel is behaving normally.
Additional query words: 5.00c XL97 XL7 XL5 hang lock freeze stops responding crash XL
Keywords: kbdtacode kbprb KB159964