R
Rick Brown via AccessMonster.com
I am using the following code to try to use the MS Excel funciton trunc,
but I get the error: (I did make sure I have a reference to the MS Excel
Library)
Object doesn't support this property or method (Error 438)
Any suggestions on how to get this code to work.
Function xltrunc(num As Double) As Single
xltrunc = Excel.WorksheetFunction.trunc(num)
End Function
Thank you
Rick Brown
but I get the error: (I did make sure I have a reference to the MS Excel
Library)
Object doesn't support this property or method (Error 438)
Any suggestions on how to get this code to work.
Function xltrunc(num As Double) As Single
xltrunc = Excel.WorksheetFunction.trunc(num)
End Function
Thank you
Rick Brown