How do u write a code so that each time it loops through a statement it adds it up depending on the number of loops.
Eg I want to count the number of times H appears in cells in sheets 1 to 12
Application.worksheetfunction.countif(sheets(x).range("C4:AK4"),"H")
I want to loop this 12 times each time sheet x from 1 to 12 add values together at the end.
Thanks in advance
Eg I want to count the number of times H appears in cells in sheets 1 to 12
Application.worksheetfunction.countif(sheets(x).range("C4:AK4"),"H")
I want to loop this 12 times each time sheet x from 1 to 12 add values together at the end.
Thanks in advance