ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to call worksheet functions from Access ? (https://www.excelbanter.com/excel-worksheet-functions/6654-how-call-worksheet-functions-access.html)

Martin Plamondon

How to call worksheet functions from Access ?
 
Hi,

I used to be able easily to call Excel functions from outside Excel, like MS
Access with a simple statement as follow:

var = Excel.Application.NormInv(....)

With newer versions of Excel, these functions were grouped in an object
called WorksheetFunction, so I assume the line to call now would be:

var = Excel.Application.WorksheetFunction.NormInv(...)

But this always return me an error 1004, saying it can't read the property
'NormInv' from object 'WorksheetFunction'.

Anybody figured that one out?

Thanks




All times are GMT +1. The time now is 02:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com