Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.access.queries,microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi-
I would like to use the Excel Application Worksheet Mode function in Access. Is it possible? I know that the following code works: set the reference to microsoft excel library Sub xlMedian() Dim obj As Excel.Application Set obj = CreateObject("Excel.Application") MsgBox obj.Application.Median(1, 2, 5, 8, 12, 13, 1, 1) obj.Quit Set obj = Nothing End Sub However, if I replace Median with Mode I get an error: "Type Mismatch" If I try WorksheetFunction.Mode(1, 2, 5, 8, 12, 13, 1, 1) With Sheets("Sheet1") MsgBox WorksheetFunction.Mode(.Range(.Range("F2"), .Range("G2"))) End With I receive the message "unable to get the Mode property of the WorksheetFunction class" I am very new to writing Excel VBA code. The answer maybe obvious, however, searching for it seems to be a time sink! Is it possible to do this without setting the ActiveCell formula.? -Thanks so much. ANE |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Mode function in excel using Text | Excel Discussion (Misc queries) | |||
Mode Function or MODE Function -- Can't get it to work!! | Excel Discussion (Misc queries) | |||
how to get write access from read-onlly mode | Excel Discussion (Misc queries) | |||
3D References Mode() Function Excel | Excel Worksheet Functions | |||
how do I end function mode in excel | Excel Discussion (Misc queries) |