D
Dave
how do i add a range of cells to this to add the same effect to another row?
presently it is d23
23 I would like to add d29
29
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Cell As Range
Dim CheckRange As Range
Set CheckRange = Range("d23
23")
If Union(CheckRange, Target).Address = _
Union(CheckRange, CheckRange).Address Then
If Target.Cells(1).Value > 0 Then
For Each Cell In Target.Cells
Cell.Value = Cell.Value * -1
Next Cell
End If
End If
End Sub
presently it is d23
![Stick Out Tongue :p :p](/styles/default/custom/smilies/tongue.gif)
![Stick Out Tongue :p :p](/styles/default/custom/smilies/tongue.gif)
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Cell As Range
Dim CheckRange As Range
Set CheckRange = Range("d23
![Stick Out Tongue :p :p](/styles/default/custom/smilies/tongue.gif)
If Union(CheckRange, Target).Address = _
Union(CheckRange, CheckRange).Address Then
If Target.Cells(1).Value > 0 Then
For Each Cell In Target.Cells
Cell.Value = Cell.Value * -1
Next Cell
End If
End If
End Sub