E
Earl Kiosterud
Harold,
Although Autocorrect could be used, it would kick in any time you typed a y
or n, even in other Office programs.
Probably the best is an event-fired macro that makes the changes only when
you're in the column of interest. Paste this into the sheet module in the
Visual Basic Environment (Alt-F11).
Private Sub Worksheet_Change(ByVal Target As Range)
' Routine changes lower case to upper case in a column
Dim Coll As Integer
Coll = 2 'column to be converted
If Target.Column = Coll Then
Application.EnableEvents = False ' prevent re-firing
Target.Value = UCase(Target.Value)
Application.EnableEvents = True
End If
End Sub
Although Autocorrect could be used, it would kick in any time you typed a y
or n, even in other Office programs.
Probably the best is an event-fired macro that makes the changes only when
you're in the column of interest. Paste this into the sheet module in the
Visual Basic Environment (Alt-F11).
Private Sub Worksheet_Change(ByVal Target As Range)
' Routine changes lower case to upper case in a column
Dim Coll As Integer
Coll = 2 'column to be converted
If Target.Column = Coll Then
Application.EnableEvents = False ' prevent re-firing
Target.Value = UCase(Target.Value)
Application.EnableEvents = True
End If
End Sub