D Dave Peterson Jan 16, 2006 #2 ATAN() Hello, How can I create a ARCTAN (TAN-1) function in VBA? Thanks Click to expand...
E Edward Ulle Jan 16, 2006 #3 Tadashii, In the VB editor goto help and type in Derived and goto Derived Math Function. There is a list of useful equations. For arc or cotangent you could do the following. Public Function Arctangent(dblValue as Double) As Double Arctangent = 1# / Tan(dblValue) End Function Then in your code to call Arctangent. dblATan = Arctangent(dblValue)
Tadashii, In the VB editor goto help and type in Derived and goto Derived Math Function. There is a list of useful equations. For arc or cotangent you could do the following. Public Function Arctangent(dblValue as Double) As Double Arctangent = 1# / Tan(dblValue) End Function Then in your code to call Arctangent. dblATan = Arctangent(dblValue)
T Tom Ogilvy Jan 16, 2006 #4 Use the built in Arttan function?? from Excel VBA help: Atn Function Returns a Double specifying the arctangent of a number.
Use the built in Arttan function?? from Excel VBA help: Atn Function Returns a Double specifying the arctangent of a number.