Hi, hope someone can help
I have a directory with 1000's of excel files the filenames are formatted A1234 17.xlxs
The A is a checksum, the 1234 is client ref then a space then a year.
I am trying to put a button on my DB that will open the folder and filter everything except this client selected on the DB. in win Explorer I would type *1234*
But when I do this in VBA it dosn't work. is it possible?
My current code is
thanks
I have a directory with 1000's of excel files the filenames are formatted A1234 17.xlxs
The A is a checksum, the 1234 is client ref then a space then a year.
I am trying to put a button on my DB that will open the folder and filter everything except this client selected on the DB. in win Explorer I would type *1234*
But when I do this in VBA it dosn't work. is it possible?
My current code is
Code:
Private Sub openfolder_Click()
Dim str_folder As String
str_folder = "\\server3\d\Excel Files CLients\Accounts\*1234*"
Call Shell("explorer.exe " & str_folder, vbNormalFocus)
End Sub
thanks