I have this user defined function that takes two inputs (temp and relative humidity) and gives one output (enthalpy). I have created the code in a macro-enabled workbook, checked all the functions within the spreadsheet, and then saved as an add-in. When I open the add-in in another workbook, all the other UDFs work except one. This function returns a #VALUE! error, although the correct data type is selected. When I try it in the original workbook, it starts with the error, I open VBA and save the code and ppof, it works without me changing anything. Below is the code and any help is always greatly appreciated.
Bookmarks