Can someone help me with this code. I want to count the number of word "VRAI" in a column located in another sheet.
It returns 0 when I run the debugger.
Here is my code (this code is in another sheet called telephonie):
Dim NUMBER_OF_VRAI As Double
Set myRange = Worksheets("Bottin RAW").Range("G2:G1000")
NUMBER_OF_VRAI = Application.WorksheetFunction.CountIf(myRange, "VRAI")
Am I missing something?
It returns 0 when I run the debugger.
Here is my code (this code is in another sheet called telephonie):
Dim NUMBER_OF_VRAI As Double
Set myRange = Worksheets("Bottin RAW").Range("G2:G1000")
NUMBER_OF_VRAI = Application.WorksheetFunction.CountIf(myRange, "VRAI")
Am I missing something?