Quote Originally Posted by josh.rice
Open the project references, then select microsoft Scripting Runtime.

This is the code to get only the filename:

vb Code:
  1. Dim FSO as New Scripting.FileSystemObject
  2. DIm x as file
  3. Dim FilePath as string
  4. FilePath = 'The path of the image
  5. x = FSO.GetFile(FilePath)
  6. msgbox x.FileName
disregard my 1st reply.. i already see it and i check it and press ok.
where do i put taht code to try your code