![]() |
integrate output from various workbooks in one workbook
I have a few different models in seperate excel workbooks ... one for
cars, one for houses, one for retirement accounts.. I recently had the idea to take outputs from each of these models and plug them into a single workbook something like life.xls. What I'm wondering is if there is a way to wrap them (the house and car models) with an interface (VBA?) which I can pass parameters and can call from a macro in life.xls to retrieve the output from. Essentially I'd like each of the workbooks (house,..cars) to be like a callable function into which I can pass parameters, and which returns a value (in this case probably an array of values). Is this possible? Am I trying to push excel too far? Would it be simpler to just bite the bullet and abandon excel and try and code this up in C++? Maybe one step which might simplify the problem is if I make the seperate models just sets of worksheets in the life.xls workbook. I'm resisting this just because it's nice to have the models seperate for organizational purposes. Also if this seems doable are there any good examples out there for reference? |
integrate output from various workbooks in one workbook
John,
To me, you could create your own object model of "Life", with various classes (Car, House, RetireAccount, etc) with a collection of each if required. Each class controls its own data presentation, calculation etc. Depending how you want to construct it, you can enforce "Life" as the starting point or allow individual instances of lesser objects. NickHK wrote in message oups.com... I have a few different models in seperate excel workbooks ... one for cars, one for houses, one for retirement accounts.. I recently had the idea to take outputs from each of these models and plug them into a single workbook something like life.xls. What I'm wondering is if there is a way to wrap them (the house and car models) with an interface (VBA?) which I can pass parameters and can call from a macro in life.xls to retrieve the output from. Essentially I'd like each of the workbooks (house,..cars) to be like a callable function into which I can pass parameters, and which returns a value (in this case probably an array of values). Is this possible? Am I trying to push excel too far? Would it be simpler to just bite the bullet and abandon excel and try and code this up in C++? Maybe one step which might simplify the problem is if I make the seperate models just sets of worksheets in the life.xls workbook. I'm resisting this just because it's nice to have the models seperate for organizational purposes. Also if this seems doable are there any good examples out there for reference? |
All times are GMT +1. The time now is 02:10 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com