jamesdpmullan
Registered User.
- Local time
- Today, 21:01
- Joined
- Oct 21, 2013
- Messages
- 24
Hi,
OK, so I know how to search for a file using the dir function, however, i need to search for a file from a main folder which may have several sub folders.
I am having no luck so far - i understand there is a recursive search facility but im not sure how i can get this to work with what i am trying to achieve.
This is the code i have for the dir function:
OK, so I know how to search for a file using the dir function, however, i need to search for a file from a main folder which may have several sub folders.
I am having no luck so far - i understand there is a recursive search facility but im not sure how i can get this to work with what i am trying to achieve.
This is the code i have for the dir function:
Code:
If Len(Dir("\\as-tamworth-50\midlands.qa$\Tamworth\Laminate C of Cs\Circuit Foil\" & CofC & ".")) = 0 Then
MsgBox "This file does not exist"
Else
MsgBox "Yippee"
End If