What is this "FindFiles()?" It appears to be something you (the generic you) have written. I find no such routine in the Scripting library, or in the
VB libraries.
Putting the argument in parens indicates that it is a function, and will return something, yet you have nothing set to do that receiving. So it should be
Code:
<Something> = FindFiles(Folder)
Set <Something> = FindFiles(Folder)
' Or
FindFiles Folder
What does FindFiles() do?
Could you use better-formed text in your posts?
[u]You</u> know what you mean, but
[u]we</u> have to rely on what you type. For instance, â. . . , but now im getting a type mismatch the cmdSearch is getting highlighted in yellow . . . â doesn't actually mean anything. (Plus, it is standard to capitalize âI.â Plus, contractionsââ
imâ should be â
Iâmâârequire apostrpophes. Sometimes making haste slows things down...) It
appears to mean, â. . . , but now im getting a type mismatch. The statement âcmdSearchâ is getting highlighted in yellow . . . â (You did say âAlways ready and waiting to be helped!â Just trying to help...)
If thatâs right, thatâs the behavior when a routine (cmdSearch() in this case) wonât compile. (When the routine compiles but hits an error while trying to execute a given line, then that individual line is highlighted.) The highlight indicates the progress of the running. Everything up to the highlight has run, but it is stopped trying to execute at that which is highlit. So knowing more about FindFiles() would help resolve where the problem lies.