I tried the first code and this is really helpful. but i need to run a VBA in several rows to get goal seeked value.
here is my code-
Sub Runall()'
' Runall
'
' Keyboard Shortcut: Ctrl+K
'
For Each cll In Range("AX21:E21")
cll.GoalSeek Goal:=35, ChangingCell:=cll.Offset(-4, -1).Range( _
"A1")
Next cll
ActiveCell.Offset(4, 2).Range("A1").Select
End Sub
This VBA can be applied for the range AX21:E21. But i need to run this VBA for several rows like AX30:E30. I understand that an offset has to be built. but I am not yet a pro.
Any help from would be much appreciated.
Thanks a lot in advance.