How do I determine the number of files in a directory that have certain words in the file name?
I have this function here
i want to see the number of htm files that have the words "Single Problem Tracking Ticket #9.htm"
some may have "Single Problem Tracking Ticket #9Page2.htm" Page3, etc
I have this function here
Code:
Function countfiles(folder As String) Dim directory As String, countOf As Long directory = Dir$(folder & "\*.htm") Do Until directory = "" countOf = (countOf + 1) directory = Dir$() Loop MsgBox countOf End Function
some may have "Single Problem Tracking Ticket #9Page2.htm" Page3, etc
Comment