This is the first time that I encounter this problem and I do not know the source of it, I hope someone can shed some light on it.
I was using .lookin for a file search
f.path is a path that I reference to my server.
The problem is that no matter where I reference, ".lookin" just searches C:\Documents and Settings\All Users
Does anyone encounter this before? If so, how did you fix it?
I was using .lookin for a file search
Code:
With Application.FileSearch
.NewSearch
.LookIn = f.path
.SearchSubFolders = False
.filename = "*.txt"
.MatchTextExactly = False
.FileType = 1 'msoFileTypeAllFiles
f.path is a path that I reference to my server.
The problem is that no matter where I reference, ".lookin" just searches C:\Documents and Settings\All Users
Does anyone encounter this before? If so, how did you fix it?