Hi all,
I have developed a set of extensive macro calculations that I now want to trigger when a data table is created. These calculations have numerous inputs, and the idea is that the user should be able to use the data table function in Excel to vary any one of these inputs and record the result. The macros I have created are really a small program, with combinations of functions, subs, and custom objects. The problem is that I need some way for the creation of a data table to trigger the calculation of these macros for every entry in the data table.
Any ideas? I have all the calcs setup so that a single sub triggers everything. I originally thought to use the worksheet_change() event and trigger the calcs that way (with an option to turn off the calculations when not using data tables). Two problems with that. First, I don't know where the user will create the data tables. Very likely, they will put them on a separate worksheet. Second, the generation of data tables does not trigger the _Change() event. I also tried using the Worksheet_Calculate() event, but the data table did not trigger that either.
Help please.
I have developed a set of extensive macro calculations that I now want to trigger when a data table is created. These calculations have numerous inputs, and the idea is that the user should be able to use the data table function in Excel to vary any one of these inputs and record the result. The macros I have created are really a small program, with combinations of functions, subs, and custom objects. The problem is that I need some way for the creation of a data table to trigger the calculation of these macros for every entry in the data table.
Any ideas? I have all the calcs setup so that a single sub triggers everything. I originally thought to use the worksheet_change() event and trigger the calcs that way (with an option to turn off the calculations when not using data tables). Two problems with that. First, I don't know where the user will create the data tables. Very likely, they will put them on a separate worksheet. Second, the generation of data tables does not trigger the _Change() event. I also tried using the Worksheet_Calculate() event, but the data table did not trigger that either.
Help please.