Tue, 20 Jul 2004 22:28:09 +0100, J Stand wrote :
As mentioned before you can use
Application.Intersect(Target, Range)
or you can use Target.Row and Target.Column properties
Private Sub Worksheet_Change(ByVal Target As Range)
Dim RowMin As Integer
Dim RowMax As Integer
Dim ClMin As Integer
Dim ClMax As Integer
RowMin = 1
RowMax = 3
ClMin = 1
ClMax = 4
If IsEmpty(Target.Value) Or Target.Count > 1 Then Exit Sub
If (Target.Row >= RowMin) And (Target.Row <= RowMax) _
And (Target.Column >= ClMin) And (Target.Column <= ClMax) Then
Application.EnableEvents = False
Target.Value = VBA.UCase(Target.Value)
Application.EnableEvents = True
End If
End Sub
As you can see this procedure requires bit more coding , but IMHO it's
easier to understand