Hi there,
I somehow managed to create a Makro in Excel and it does what it is supposed to do (yeah!): do a goal seek.
what I want next is that it does this goal seek not only in one row (the currently specified cells) but in all rows of the concerned column (I want to create a graph from the calculated values), i.e. a Range() is certainly involved. but I have no idea where to look how to do a goal seek on a range. can you help me find that out?
current version of the code:
PS. I’m not a VBA coder and I do not plan to become one.
I somehow managed to create a Makro in Excel and it does what it is supposed to do (yeah!): do a goal seek.
what I want next is that it does this goal seek not only in one row (the currently specified cells) but in all rows of the concerned column (I want to create a graph from the calculated values), i.e. a Range() is certainly involved. but I have no idea where to look how to do a goal seek on a range. can you help me find that out?
current version of the code:
Code:
' (re)calculate value when a parameter is changed Private Sub Worksheet_SelectionChange(ByVal Target As Range) ' H and A are the columns of interest [H9].GoalSeek Goal:=[D4], ChangingCell:=[A9] End Sub
Comment