superbeast326
Board Regular
- Joined
- Nov 12, 2011
- Messages
- 132
Why doesn't this code work?
The above code is written directly into worksheet_change module. The code just refuses to clear the contents of the changed cell if I select no from the message box. Please help.
Code:
vbresult = msgbox(dxMatchPrompt, vbYesNo, "Are you sure?")
If vbbresult = vbYes Then
do something
End If
ElseIf vbresult = vbNo Then
range.clearcontents
end if
The above code is written directly into worksheet_change module. The code just refuses to clear the contents of the changed cell if I select no from the message box. Please help.