Hi all
I'm having some trouble with a bit of VBA code in Access and was wondering if you could help me.
My problem is this. I have a financial model that was built in Excel. The model has c.300 inputs in Excel. What I want to do now is run scenario analysis to see what affect changing various inputs have on my outputs.
For each scenario therefore, there will be c.300 different inputs. So if I want to run 100 scenarios, that will be 300 * 100 inputs that need to be changed. Plus, I would have to overwrite every input if I performed this anaylsis in Excel.
This is where my database comes in. I am storing all my inputs in the database, and then linking it to Excel. This way, I can store all my inputs and also associate them with various scenarios. At the moment, I have the code working perfectly for sending across one scenario to my model.
The crux of my problem though is that I need to run ALL my scenarios and compare the output given to me at the end for each scenario. E.g. I want to run Scenarios 1 through to 100, and compare the output that the model gives me for each scenario.
I'm not sure whether I have explained that well, so have attached a sample database and spreadsheet to try and illustrate what I'm trying to acheive. Note that this spreadsheet IS NOT THE ACTUAL MODEL. The actual model is a lot more complicated, but you should be able to grasp what I'm trying to acheive by my example database (I envisage the code being attached to the RUN ALL SCENARIOS button - note that the code in there at the moment doesn't work).
If anyone is able to help I would be eternally grateful!!
Thanks
Brian
I'm having some trouble with a bit of VBA code in Access and was wondering if you could help me.
My problem is this. I have a financial model that was built in Excel. The model has c.300 inputs in Excel. What I want to do now is run scenario analysis to see what affect changing various inputs have on my outputs.
For each scenario therefore, there will be c.300 different inputs. So if I want to run 100 scenarios, that will be 300 * 100 inputs that need to be changed. Plus, I would have to overwrite every input if I performed this anaylsis in Excel.
This is where my database comes in. I am storing all my inputs in the database, and then linking it to Excel. This way, I can store all my inputs and also associate them with various scenarios. At the moment, I have the code working perfectly for sending across one scenario to my model.
The crux of my problem though is that I need to run ALL my scenarios and compare the output given to me at the end for each scenario. E.g. I want to run Scenarios 1 through to 100, and compare the output that the model gives me for each scenario.
I'm not sure whether I have explained that well, so have attached a sample database and spreadsheet to try and illustrate what I'm trying to acheive. Note that this spreadsheet IS NOT THE ACTUAL MODEL. The actual model is a lot more complicated, but you should be able to grasp what I'm trying to acheive by my example database (I envisage the code being attached to the RUN ALL SCENARIOS button - note that the code in there at the moment doesn't work).
If anyone is able to help I would be eternally grateful!!
Thanks
Brian
Last edited: