I've been running into a wall. I am trying to make a file renamer and have fallen flat on my face. I would like to remove the first 12 characters of a file (always the same) then delete everything after the part I want to keep" -" (always different after. It would be amazing if it utilized application.getopenfilename so I can use it in different folders and multiple files at the same time. Example of what I'm attempting below. Please keep in mind keep will always be different as will be everything after - .
Original:
123456789 - keep - 5654eg -5444_3453333 - vffgvxdrf6.csv
What I'm trying to rename to
Keep.csv
Original:
123456789 - keep - 5654eg -5444_3453333 - vffgvxdrf6.csv
What I'm trying to rename to
Keep.csv