Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to use the Acos function in my code:
y = Application.WorksheetFunction.Acos(x) but it keeps giving me an error: "Unable to get the Acos property of the WorksheetFunction class." |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub dural()
Dim x As Double x = 0.1 MsgBox (Application.WorksheetFunction.Acos(x)) End Sub Seems to work. Have you declared x to be double in your code?? -- Gary''s Student - gsnu200901 "Philosophaie" wrote: I am trying to use the Acos function in my code: y = Application.WorksheetFunction.Acos(x) but it keeps giving me an error: "Unable to get the Acos property of the WorksheetFunction class." |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What do you get when you run this?
x = 0.1 y = Application.WorksheetFunction.Acos(x) MsgBox y Gord Dibben MS Excel MVP On Sat, 22 Aug 2009 10:55:01 -0700, Philosophaie wrote: I am trying to use the Acos function in my code: y = Application.WorksheetFunction.Acos(x) but it keeps giving me an error: "Unable to get the Acos property of the WorksheetFunction class." |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Sat, 22 Aug 2009 10:55:01 -0700, Philosophaie
wrote: I am trying to use the Acos function in my code: y = Application.WorksheetFunction.Acos(x) but it keeps giving me an error: "Unable to get the Acos property of the WorksheetFunction class." What is your value for "x"? If it is not in the range of possibility (i.e. -1 to 1) you will see that error message. --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Modified ACOS function | Excel Discussion (Misc queries) | |||
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? | Excel Programming | |||
Function ACOS in Excel VBA | Excel Programming | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Acos Function | Excel Programming |