MisterExcellent
New Member
- Joined
- Apr 21, 2011
- Messages
- 46
With this code you can show or hide the input messages on the basis of a dropdown(true/false).
I want to use this with a commandbutton and not a dropdown.
I look forward to your approaches.
I want to use this with a commandbutton and not a dropdown.
I look forward to your approaches.
Code:
'APJToolTips
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
Dim cel As Range
If Target.Address = Me.Range("ShowUserMsg").Address Then
Set rng = Me.Cells.SpecialCells(xlCellTypeAllValidation)
For Each cel In rng.Cells
With cel.Validation
If .InputMessage <> "" Then .ShowInput = Target.Value
End With
Next cel
End If
End Sub