Ironman
Well-known Member
- Joined
- Jan 31, 2004
- Messages
- 1,069
- Office Version
- 365
- Platform
- Windows
Hello
I'd like to be able to clear all data validation (including validation comments) from a single selected cell
- only in a sheet called Training Log and
- only when I click on an assigned button, preceded by a "Are you sure?" Yes/Cancel msgbox.
I tried the following code for the deletion part, which doesn't work
Hope you can help?
Many thanks.
I'd like to be able to clear all data validation (including validation comments) from a single selected cell
- only in a sheet called Training Log and
- only when I click on an assigned button, preceded by a "Are you sure?" Yes/Cancel msgbox.
I tried the following code for the deletion part, which doesn't work
Code:
SubClearValidation()
If ActiveSheet.Name = "Training Log" Then
With Selection.Validation
.Delete
End If
End With
End Sub
Hope you can help?
Many thanks.
Last edited: