ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   dcount with vba (https://www.excelbanter.com/excel-worksheet-functions/79545-dcount-vba.html)

J Slavin

dcount with vba
 
is it possible to use the dcount function with vba?

i tried Application.WorksheetFunction.DCount(....) but didnt work,
sayid it could not get the DCount function.

thanks in advance,


--


JRod

dcount with vba
 
Hi,
Perhaps Application.DCount(...) without WorkSheetFunction...


--
JRod
Microsoft [MVP] - Excel
http://EXCELer.blogspot.com

______________________________________
"J Slavin" escreveu na mensagem
...
is it possible to use the dcount function with vba?

i tried Application.WorksheetFunction.DCount(....) but didnt work,
sayid it could not get the DCount function.

thanks in advance,


--




Don Guillett

dcount with vba
 
According to vba help, yes. You probably did not use proper syntax for the
ranges
instead of a1:a32
use
range("a1:a32")

--
Don Guillett
SalesAid Software

"J Slavin" wrote in message
...
is it possible to use the dcount function with vba?

i tried Application.WorksheetFunction.DCount(....) but didnt work,
sayid it could not get the DCount function.

thanks in advance,


--





All times are GMT +1. The time now is 03:24 PM.

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