Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2014, 07:02 AM
ozil61 ozil61 is offline Macro to rename multiple Word file with same suffix Windows 7 64bit Macro to rename multiple Word file with same suffix Office 2010 64bit
Novice
Macro to rename multiple Word file with same suffix
 
Join Date: May 2014
Posts: 2
ozil61 is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 05-02-2014, 03:50 PM
macropod's Avatar
macropod macropod is offline Macro to rename multiple Word file with same suffix Windows 7 32bit Macro to rename multiple Word file with same suffix Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 05-06-2014, 07:36 AM
ozil61 ozil61 is offline Macro to rename multiple Word file with same suffix Windows 7 64bit Macro to rename multiple Word file with same suffix Office 2010 64bit
Novice
Macro to rename multiple Word file with same suffix
 
Join Date: May 2014
Posts: 2
ozil61 is on a distinguished road
Default

Hi Macropod

Many thanks, managed to get it done using Powershell

Rgds
O
Reply With Quote
Reply



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
Macro to rename multiple Word file with same suffix Have to rename file every time to save workbook intelli Excel 3 03-27-2014 11:53 PM
Macro to rename multiple Word file with same suffix Rename File cksm4 Word VBA 2 02-25-2011 09:29 AM
Macro to rename multiple Word file with same suffix 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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:03 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft