Ken Johnson or someone! -- I need some help again!
"Fecozisk" wrote:
Hi! and thanks for everything!
do you remember last topic "Help me! Using Excel for Soccer Games" ??
well, i have a problem on it... im using the following:
The problem is that in the same sheet i also need to use another interval,
which is E66:AT91
If you have multiple ranges it's best to determine the valid fields instead
of the invalid ones:
Private Sub Worksheet_Change(ByVal Target As Range)
cm = Target.Column
rw = Target.Row
If (cm = 5 And cm <= 46) And ((rw = 4 And rw <= 29) Or (rw = 66 And rw
<= 91)) Then
Me.Unprotect
Target.Locked = True
Me.Protect
End If
End Sub
In your case the columns are the same so you can test the column-range in
one time.
--
greetings from Belgium
Stefan.
|