neoseo1300
New Member
Hi everyone,
Until recently, I was using 2-dimension datatables to create scenarios / sensitivities in a complex financial model. The model had to be restructured, forcing one of the two inputs used for the datatables to be located in a different sheet. As you know, datatables don't work if inputs are not in the same tab so I need to work a way around it.
Therefore I'm looking for a way to replace these datatables with an equivalent piece of VBA code. I'm attaching an example of what I'm trying to achieve (i.e. filling out the yellow table with the result of a calculation whose parameters are Input A and Input B). I don't think it's complicated but I'm not familiar enough with VBA to make something that works and that is clean (i.e. efficient - using loop) for that purpose.
Any help would therefore be much appreciated
Thanks!
Until recently, I was using 2-dimension datatables to create scenarios / sensitivities in a complex financial model. The model had to be restructured, forcing one of the two inputs used for the datatables to be located in a different sheet. As you know, datatables don't work if inputs are not in the same tab so I need to work a way around it.
Therefore I'm looking for a way to replace these datatables with an equivalent piece of VBA code. I'm attaching an example of what I'm trying to achieve (i.e. filling out the yellow table with the result of a calculation whose parameters are Input A and Input B). I don't think it's complicated but I'm not familiar enough with VBA to make something that works and that is clean (i.e. efficient - using loop) for that purpose.
Any help would therefore be much appreciated
Thanks!