Hi,
I need to perform goalseek to set the cells in row 61 (from column G onwards) to zero by changing the cells in row 40 (column G onward)
I can record a macro to do this for only 3 columns (as in my spreadsheet) but the problem is I will have approx 100 columns worth of different data and I need to perform the same Goal Seek function for each different column.
In other words I want to perform the following action:
Range("G61").goalseek Goal:=0, ChangingCell:=Range("G40")
End Sub
Except I need to do so for the subsequent columns H, I, J, K, L etc etc and I'm not sure how to amend the macro to do this(?)
Any help = greatly appreciated
I need to perform goalseek to set the cells in row 61 (from column G onwards) to zero by changing the cells in row 40 (column G onward)
I can record a macro to do this for only 3 columns (as in my spreadsheet) but the problem is I will have approx 100 columns worth of different data and I need to perform the same Goal Seek function for each different column.
In other words I want to perform the following action:
Range("G61").goalseek Goal:=0, ChangingCell:=Range("G40")
End Sub
Except I need to do so for the subsequent columns H, I, J, K, L etc etc and I'm not sure how to amend the macro to do this(?)
Any help = greatly appreciated