S
S
sky1442014-11-22 14:10:05
Visual Basic
sky144, 2014-11-22 14:10:05

How to use COUNTA function in vba?

Fill in the cells from A1 to F1 with characters
in the eSel Write the formula =COUNTA(A1:F1) in Excel,
get the value 6 (six non-empty cells)
According to the link
howtoo.ru/ispol-zovanie-funktsij-microsoft-excel-v...
to to use the excel function in vba, you must write
Application.WorksheetFunction before the function.
Ok, we're writing. It turns
out MsgBox Application.WorksheetFunction.CountA("A1:F1")
We run the script, we get 1. Why one? Must be six!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question