Hi all,
I created a small add-in with a library of functions.
Code is tested and works fine if I use it in one of my add-in sheet.
Now if I change the extension of the file to xla, change the property of the file to add-in = true, and drop the file in :
C:\Program Files\Microsoft Office\Office\XlStart
Everything works fine in my add-in , except that when I call my functions from a new workbook, it returning :#VALUE!
My functions are declared in a module of my add-in.
Example of functions:
--------------------
Function QROI(IRR As Double, Depreciation As Double, CostOfFund As Double, OH As Double, Leverage As Double, Taxes As Double) As Double
QROI = (IRR / 100 - Depreciation / 100 - CostOfFund / 100 * Leverage / 100 - OH / 100) * (1 - Taxes / 100)
On Error Resume Next
End Function
-------------
Any idea ?
Thanks
I created a small add-in with a library of functions.
Code is tested and works fine if I use it in one of my add-in sheet.
Now if I change the extension of the file to xla, change the property of the file to add-in = true, and drop the file in :
C:\Program Files\Microsoft Office\Office\XlStart
Everything works fine in my add-in , except that when I call my functions from a new workbook, it returning :#VALUE!
My functions are declared in a module of my add-in.
Example of functions:
--------------------
Function QROI(IRR As Double, Depreciation As Double, CostOfFund As Double, OH As Double, Leverage As Double, Taxes As Double) As Double
QROI = (IRR / 100 - Depreciation / 100 - CostOfFund / 100 * Leverage / 100 - OH / 100) * (1 - Taxes / 100)
On Error Resume Next
End Function
-------------
Any idea ?
Thanks