Hi there MrExcel community, this is my first forum post! So I have just recently started a new job and blagged that I could do some basic VBA and ...well... let's just say that I am on a steep learning curve
I have a basic repetitive task that I am hoping one of you could help me with. I've spent around 30 mins trying it, however, I am still getting to grips with the basic VBA language, operators, expressions and so on. What I am trying to do is this:
On sheet "sensitivity analysis" select Cell A9 and paste the value into A3
Select Cells I3:K3 and paste into Cells I9:K9
Then repeat for line 10 as follows:=
On sheet "sensitivity analysis" select Cell A10 and paste the value into A3
Select Cells I3:K3 and paste into Cells I10:K10
The repeat for lines 11 onward until the cell is blank.
This is effectively taking a scenario ID in column A and entering it into cell A3. This triggers cells B2 to D2 to lookup the values from the appropriate row which serve as inputs for a scenario in a model. The outputs of the scenario are calculated (from other sheets so Data Table cannot be used) into cells I:K.
I'd like to run 1,000 scenarios.
I hope this makes sense, any questions please let me know. Your help is much appreciated.
I have a basic repetitive task that I am hoping one of you could help me with. I've spent around 30 mins trying it, however, I am still getting to grips with the basic VBA language, operators, expressions and so on. What I am trying to do is this:
On sheet "sensitivity analysis" select Cell A9 and paste the value into A3
Select Cells I3:K3 and paste into Cells I9:K9
Then repeat for line 10 as follows:=
On sheet "sensitivity analysis" select Cell A10 and paste the value into A3
Select Cells I3:K3 and paste into Cells I10:K10
The repeat for lines 11 onward until the cell is blank.
This is effectively taking a scenario ID in column A and entering it into cell A3. This triggers cells B2 to D2 to lookup the values from the appropriate row which serve as inputs for a scenario in a model. The outputs of the scenario are calculated (from other sheets so Data Table cannot be used) into cells I:K.
I'd like to run 1,000 scenarios.
I hope this makes sense, any questions please let me know. Your help is much appreciated.