View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Doug Howell Doug Howell is offline
external usenet poster
 
Posts: 11
Default auto convert to upper case

I have some code that will convert any lower case letters entered into
a cell to upper case.

In the following example, I'd like to have this work for the entire G
column, not just cell G5.
How would I do that???


Private Sub Worksheet_Change(ByVal Target As Range)

Application.EnableEvents = False

If Target.Address = "$G$5" Then
Target(1).Value = UCase(Target(1).Value)
End If

Application.EnableEvents = True

End Sub