I have created an excel workbook with many defined functions. These functions are calculated by looping through an array (that is populated from an excel sheet in the same file) and where user defined parameters are entered. For example MachineAOutput(Year,Month,ProductType). Everything works in the workbook fine but entering the function in another workbook (both before and after creating the Add-In) doesnt work, it just retunrs a zero. This suggests the function is recognised but the array that the function reads from is not populated.
I have created the Add-In from the original file which has all the data etc. but I can't run the Sub procedure that populates the array as I get a 'Subscript out of range' error?
I have created the Add-In from the original file which has all the data etc. but I can't run the Sub procedure that populates the array as I get a 'Subscript out of range' error?