Hi
I am trying to write a macro to goal seek records within a selected range which may include blank cells. The intention is to skip those records whereby the cell is blank and move on to the next record. My code so far:
Dim CurCell As Range
For Each CurCell In Selection
If CurrCell.Value <> 0 Then CurCell.GoalSeek Goal:=CurCell.Offset(0, 2), ChangingCell:=CurCell.Offset(0, -80)
Next
End
Although, not working, can anyone shed some light
I am trying to write a macro to goal seek records within a selected range which may include blank cells. The intention is to skip those records whereby the cell is blank and move on to the next record. My code so far:
Dim CurCell As Range
For Each CurCell In Selection
If CurrCell.Value <> 0 Then CurCell.GoalSeek Goal:=CurCell.Offset(0, 2), ChangingCell:=CurCell.Offset(0, -80)
Next
End
Although, not working, can anyone shed some light