Josh W
Posts: 17
Joined: 2008-10-21
|
I am creating XLL UDF's in VB 2008. Is it possible to call Excel worksheet functions in VB2008?
For example, if you wanted to use normsdist in VBA you use "=worksheetfunction.normsdist()". Also, I know it is possible as well in VB6 COM add-ins. Is it possible to make similar calls in VB2008 XLLs? I tried several things but can't seem to make it work.
Thanks.
|
|
Eugene Astafiev
Guest
|
Hello Josh,
You can use the following function:
Module.CallWorksheetFunction |
|
Josh W
Posts: 17
Joined: 2008-10-21
|
THanks very much! I used (using the example above),
returnVal=XLLModule.CurrentInstance.CallWorksheetFunction(AddinExpress.MSO.ADXExcelWorkseetFunction.Normsdist, Val)
and that seemed to work.
Thanks. |
|