Cyberwolf000
New Member
- Joined
- May 5, 2008
- Messages
- 18
Hi all,
What I am attempting to do is to strip off the file extension of a file and then search for that file name in a list on a worksheet. Here is the line of code I thought should work
TempName = Left(FileItem.Name, Len(FileItem.Name) - InStrRev(FileItem.Name, ".") - 1)
What is appening is if there is an underscore in the filename all I get is the characters before the underscore ie.
Aero_PM.accdb would only give me Aero instead of Aero_PM. Any ideas on why this is happening?
TIA
What I am attempting to do is to strip off the file extension of a file and then search for that file name in a list on a worksheet. Here is the line of code I thought should work
TempName = Left(FileItem.Name, Len(FileItem.Name) - InStrRev(FileItem.Name, ".") - 1)
What is appening is if there is an underscore in the filename all I get is the characters before the underscore ie.
Aero_PM.accdb would only give me Aero instead of Aero_PM. Any ideas on why this is happening?
TIA