Hi everyone,
I need a sample code about "how to counting ".bmp" formatted files in a folder?"
For example;
......
Dim FileFormat as string
Dim FolderName as string
Dim Result as integer
FileFormat = ".bmp"
FolderName: "C:\Pictures\"
Example of result that i want:
MsgBox "Total of the " & FileFormat & formatted files in the " & FolderName & "is " & Result" & "."
......
I tried While ... Wend loop but, i couldn't deal with it.
Can i get the result to a variable? And what should be my code?
Thans a lot.