dpaton05
Well-known Member
- Joined
- Aug 14, 2018
- Messages
- 2,352
- Office Version
- 365
- 2016
- Platform
- Windows
I have 2 worksheets that both have tool tips in the form of data validation input messages. There is a button on each sheet to toggle them on or off. Both buttons link to this procedure.
What code do I put for this sub to allow me to have just one button but it to toggle the tips on every sheet?
VBA Code:
Sub ToggleTips()
Quoting.Unprotect Password:=ToUnlock
Dim st As Range, cell As Range
For Each st In ActiveSheet.UsedRange
If HasValidation(st) Then
st.Validation.ShowInput = Not st.Validation.ShowInput
End If
Next st
Quoting.Protect Password:=ToUnlock
End Sub
What code do I put for this sub to allow me to have just one button but it to toggle the tips on every sheet?