![]() |
#1
|
|||
|
|||
![]()
Greetings,
I have a bunch of Word files in a directory with names like this one: 46468-1448197 - Smith-Bob-Sep 12, 2021 220 PM The file names have a consistent pattern throughout. Each begins with a hyphenated serial number(?) with the same number of digits, followed by a space, followed by a hyphen, followed by a space. Beats me why the source of these files would name them that way, but that was not my call. I want to run a macro that truncates the names of all files within a selected directory up to and including the " - ", so that what is left is merely: Smith-Bob-Sep 12, 2021 220 PM I looked for and noticed bits and pieces of code that provide a partial solution but I cannot piece it together. Your kind help is much appreciated. Jim. |
Tags |
rename file, word vba code |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
SamDsouza | Word VBA | 4 | 01-06-2021 07:27 AM |
![]() |
sg11 | Word VBA | 4 | 03-22-2018 04:25 AM |
![]() |
shivy | Excel | 6 | 04-01-2017 10:15 AM |
![]() |
BobKnepper | Word | 2 | 05-22-2016 07:30 AM |
![]() |
aaronbauer1980 | Excel Programming | 1 | 04-15-2016 05:53 PM |