I have a workbook that contains a large number of worksheets, one of which contains a number of button objects. Clicking one of the buttons (let's call it the "calculate button") begins a series of calculations based on numbers in that worksheet which itself reads inputs from throughout the workbook. It currently functions as I want it to without any issues.
I have created a second workbook with which I would like to run a loop that modifies values in the original workbook and "click" the calculate button after each combination of values is entered. It would likely be easier to do all of this with one workbook but I have to keep them separate as the first workbook is for public use and the second one is just for me.
I've created a simplified version of the scenario and attached the two files. I would like to click the button in 'Results Worksheet.xlsm" and have it then run the macro in 'Calculation Worksheet.xlsm'. Currently I keep getting the error shown below:
macroError.JPG
Hopefully someone has some ideas about how to fix this. Thanks in advance.
Bookmarks