W
Walt Moeller
I'm using the following in 2003 excel but it will not run in 2007!
Any help would be great.
Private Sub Worksheet_Change(ByVal Target As Range)
v = Range("c2").Value
If v > 500 And v < 1001 Then
Range("C3").Value = v
End If
If v > 1000 And v < 25001 Then
Range("C4").Value = v
End If
If v > 25000 And v < 100001 Then
Range("C5").Value = v
End If
If v > 100000 And v < 500001 Then
Range("C6").Value = v
End If
If v > 500000 And v < 500000001 Then
Range("C7").Value = v
End If
End Sub
Any help would be great.
Private Sub Worksheet_Change(ByVal Target As Range)
v = Range("c2").Value
If v > 500 And v < 1001 Then
Range("C3").Value = v
End If
If v > 1000 And v < 25001 Then
Range("C4").Value = v
End If
If v > 25000 And v < 100001 Then
Range("C5").Value = v
End If
If v > 100000 And v < 500001 Then
Range("C6").Value = v
End If
If v > 500000 And v < 500000001 Then
Range("C7").Value = v
End If
End Sub