Hi
I'm quite new to VBA coding and wanted to ask is there a shorter/cleaner form of writing out the following goal seek formulas for every 4th row from EJ9:EJ53?
I'm quite new to VBA coding and wanted to ask is there a shorter/cleaner form of writing out the following goal seek formulas for every 4th row from EJ9:EJ53?
Code:
Sub GSeek1()
Range("FD8").GoalSeek Goal:=Worksheets("Price Setting").Range("BL8").Value, ChangingCell:=Range("EJ9")
Range("FD12").GoalSeek Goal:=Worksheets("Price Setting").Range("BL12").Value, ChangingCell:=Range("EJ13")
Range("FD16").GoalSeek Goal:=Worksheets("Price Setting").Range("BL16").Value, ChangingCell:=Range("EJ17")
Range("FD20").GoalSeek Goal:=Worksheets("Price Setting").Range("BL20").Value, ChangingCell:=Range("EJ21")
End Sub