D
D.S.
In my code, I'm trying to return a count of instances (intJobCount) a value exists in worksheet column D. This value being set as variable strJobNumb. The following code is preventing my code from even starting. The variable strJobNumb will always be an alphameric beginning with a letter.
This line of code will stop me from running with a < Compile error: Expected list separator or ) >
intJobCount = Application.WorksheetFunction.CountIf(D, strJobNumb)
If I add quotes to the columns such as below, it will not run, and I will get a < Compile error: Type mismatch >
intJobCount = Application.WorksheetFunction.CountIf("D", strJobNumb)
Any Ideas?
D.S.
This line of code will stop me from running with a < Compile error: Expected list separator or ) >
intJobCount = Application.WorksheetFunction.CountIf(D, strJobNumb)
If I add quotes to the columns such as below, it will not run, and I will get a < Compile error: Type mismatch >
intJobCount = Application.WorksheetFunction.CountIf("D", strJobNumb)
Any Ideas?
D.S.