Ajay Kumar Sharma
Board Regular
- Joined
- Aug 30, 2008
- Messages
- 78
Plz tell me how can i write macro for changing text entry to upper case
Plz help
regards,
Ajay
Plz help
regards,
Ajay
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cell as Range, rng As Range
Set rng = Intersect(Range("A:A"),Target)
If Not rng Is Nothing Then
Application.EnableEvents = False
For Each cell In rng
cell.Value = UCase(cell.Value)
Next cell
Application.EnableEvents = True
End If
End Sub