Disarmonious
Board Regular
- Joined
- Oct 31, 2016
- Messages
- 144
Hello,
I would like Excel to prompt the user with this question, "Are You Sure" when selecting the 'Clear All' button on my form. Here's what my code looks like now:
Macros Name =
Sub ClearYNH()
'
' ClearYNH Macro
'
'
Range("BW9:BW20,BV9:BV20,BU9:BU20,BT9:BT20,BS9:BS20,BR9:BR20").Select
Range("BR9").Activate
Selection.ClearContents
Range("BR9").Select
End Sub
I would like Excel to prompt the user with this question, "Are You Sure" when selecting the 'Clear All' button on my form. Here's what my code looks like now:
Macros Name =
ClearYNH
Sub ClearYNH()
'
' ClearYNH Macro
'
'
Range("BW9:BW20,BV9:BV20,BU9:BU20,BT9:BT20,BS9:BS20,BR9:BR20").Select
Range("BR9").Activate
Selection.ClearContents
Range("BR9").Select
End Sub