To keep the look clean and simple on a few spreadsheets the desire is to have y, yes, n, no, na, n/a inputs from the user displayed as capital letters. looking around i found some vba code that will kind of do what i am after, but the way i typed it up, it cycles through all of the options in the code and does not let you clear the cell. once data is in the cell, it is there for good until you disable the macro.
it is actually kind of funny to watch. please help me help you so i can learn.
Thank you.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim A1 As Range
Set A1 = Range("B:G")
If Not Intersect(Target, A1) Is Nothing Then
Application.EnableEvents = False
Target.Value = UCase("y")
Target.Value = UCase("yes")
Target.Value = UCase("n")
Target.Value = UCase("no")
Target.Value = UCase("n/a")
Target.Value = UCase("na")
Application.EnableEvents = True
End If
End Sub
it is actually kind of funny to watch. please help me help you so i can learn.
Thank you.