View Single Post
 
Old 10-20-2021, 06:46 AM
TheBigBoss TheBigBoss is offline Windows 7 32bit Office 2010 32bit
Advanced Beginner
 
Join Date: Dec 2016
Posts: 56
TheBigBoss is on a distinguished road
Default

Hi Jim,

I am a "novice" but I am wondering since you want to do basic file renaming, the best would be use a script shell (.bat on Windows) or server script (ASP/PHP/Python, etc.) depending where the files are located.

For Visual Basic, please have a look at the Split() function.
Split function (Visual Basic for Applications) | Microsoft Docs

You can just split the string at the "-" delimiter and retrieve the last value of the array (you will have to remove the empty space of that last value)
Reply With Quote