#1
|
|||
|
|||
Macro to rename multiple Word file with same suffix
Hi - I produce monthly reports using Word which are named using a number and initials, which always stay the same, followed by the relevant month. I would like to use a macro to update the month in all the file names while leaving the number and initials used in each file the same, possibly by using a message box to insert the relevant new month.
To illustrate what I mean, here is a list of 5 old file names followed by what I would like to change them to, if the old month was March and the new month was April (in reality I would be doing this every month for about 50 files): Old: 2237_SH Mar 14 10681_SH Mar 14 11964_SH Mar 14 12536_SH Mar 14 13506_SH Mar 14 New: 2237_SH Apr 14 10681_SH Apr 14 11964_SH Apr 14 12536_SH Apr 14 13506_SH Apr 14 Thanks in advance for your help with this Oz |
#2
|
||||
|
||||
You don't need a macro for this, as it can be done quite easily with the Windows Command Prompt. There are also many freeware file renaming utilities you can obtain for doing the same thing.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Hi Macropod
Many thanks, managed to get it done using Powershell Rgds O |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to import multiple text file data into word | mizankabir | Word VBA | 7 | 09-15-2023 10:27 PM |
Have to rename file every time to save workbook | intelli | Excel | 3 | 03-27-2014 11:53 PM |
Rename File | cksm4 | Word VBA | 2 | 02-25-2011 09:29 AM |
Word Macro: Save file as text with current file name | jabberwocky12 | Word VBA | 2 | 10-22-2010 12:23 PM |
Name suffix in Reference Manager | bellczar | Word | 0 | 03-08-2010 03:14 PM |