I tried this code, and I'm not sure what I'm doing... it seems not to be the entire code, so I try to integrate it with mine, but I don't know how. Could you please give me the entire code including the important parts of the original code... so that all I need to do is replace my existing code with a proper and complete code.
This is what I have:
Sub Clear()
Dim vbResponse As VbMsgBoxResult
vbRepsonse = MsgBox("Are you sure that you would like to clear the contents of the range?", vbYesNo, "Clear?")
If vbResponse = vbYes Then
Range("C7:E91").ClearContents
Else
Exit Sub
End If
End Sub
All it does is display the message box. But regardless of my response to the box Yes/No... it does nothing else. But it needs to clear the field if I answer "Yes." And leave the field alone when I answer "No." It doesn't do that... please help me get the final code right....
Bookmarks