Eish, I wouldn’t do that!
Hypothetically, you have a whole folder worth the word, and you do not need extensions, you just need names. What you would do is go through the docs words and parse them through this function with the type of extension you want to remove from the file name
Function removeExtension(myDoc as Document, extension as String)
Dim documentWithoutExtension as String
documentWithoutExtension = replace(myDoc.Name, extension, "")
removeExtension = documentWithoutExtension
End Function
source
share