I am using the following code to automate goal seek with an assigned button. Each time I tried to run it I get an error with big red X with 400. Any idea how to fix this?
Sub GoalSeek1_Click()
Range("E22").GoalSeek Goal:=Range("6000").Value, ChangingCell:=Range("D6")
End Sub
Sub GoalSeek1_Click()
Range("E22").GoalSeek Goal:=Range("6000").Value, ChangingCell:=Range("D6")
End Sub