Z
ZEB
Hi,
I make macro:
Sub macro1()
Range("D6").Select
ActiveCell.FormulaR1C1 = "0"
Range("D16").Select
ActiveCell.FormulaR1C1 = "0"
While Range("D23") < 0
Range("D23").GoalSeek Goal:=0, ChangingCell:=Range("D6")
Wend
While Range("D23") > 0
Range("D23").GoalSeek Goal:=0, ChangingCell:=Range("D16")
Wend
End Sub
How to make it automaticly working for range of cells (D6:X6) ,
(D16:X16) and (D23:X23) ?
I make macro:
Sub macro1()
Range("D6").Select
ActiveCell.FormulaR1C1 = "0"
Range("D16").Select
ActiveCell.FormulaR1C1 = "0"
While Range("D23") < 0
Range("D23").GoalSeek Goal:=0, ChangingCell:=Range("D6")
Wend
While Range("D23") > 0
Range("D23").GoalSeek Goal:=0, ChangingCell:=Range("D16")
Wend
End Sub
How to make it automaticly working for range of cells (D6:X6) ,
(D16:X16) and (D23:X23) ?