#1   Report Post  
Posted to microsoft.public.word.docmanagement
s[_2_] s[_2_] is offline
external usenet poster
 
Posts: 41
Default renaming word files

I have 1000 word documents named PersonFirstNameLastName1.doc,
PersonFirstNameLastName2.doc, PersonFirstNameLastName3.doc ...
PersonFirstNameLastName1000.doc

Now, I have to rename them to Document1.doc,
Document2.doc...Document1000.doc respectively

Is there a way I can do it? If so, what are they? Do some renaming
utilities exist which does that or do I need to do some sort of
scripting to achieve that?

Can someone please advise?

Thanks
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default renaming word files

s wrote:
I have 1000 word documents named PersonFirstNameLastName1.doc,
PersonFirstNameLastName2.doc, PersonFirstNameLastName3.doc ...
PersonFirstNameLastName1000.doc

Now, I have to rename them to Document1.doc,
Document2.doc...Document1000.doc respectively

Is there a way I can do it? If so, what are they? Do some renaming
utilities exist which does that or do I need to do some sort of
scripting to achieve that?

Can someone please advise?

Thanks

That does not sound like a very useful way to name the documents. How
would you know what Document253 was?

However, you could modify the code in the the article "Find & ReplaceAll
on a batch of documents in the same folder” at:

http://www.word.mvps.org/FAQs/MacrosVBA/BatchFR.htm

by taking out all of the stuff about replacing the text and just have it
open each document as save it with a new name that was created by having
a counter that incremented by one for each document and combining the
current value of the counter with the word "Document"




--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my
services on a paid professional basis.
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default renaming word files

Are the files named *exactly* as you have shown them or are they named with
the names of the persons eg GrahamMayor1.doc DougRobbins2.doc etc?

As Doug indicates it would be possible to use a batch process to rename
files, but if they are named as you have indicated
http://www.bulkrenameutility.co.uk/Main_Intro.php is by far the simplest way
to rename the files (and infinitely faster than using a Word macro to do
so).

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



s wrote:
I have 1000 word documents named PersonFirstNameLastName1.doc,
PersonFirstNameLastName2.doc, PersonFirstNameLastName3.doc ...
PersonFirstNameLastName1000.doc

Now, I have to rename them to Document1.doc,
Document2.doc...Document1000.doc respectively

Is there a way I can do it? If so, what are they? Do some renaming
utilities exist which does that or do I need to do some sort of
scripting to achieve that?

Can someone please advise?

Thanks



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
s[_2_] s[_2_] is offline
external usenet poster
 
Posts: 41
Default renaming word files

On Nov 9, 4:56*am, Doug Robbins - Word MVP
wrote:
That does not sound like a very useful way to name the documents. *How
would you know what Document253 was?

That is the idea. We want the documents to be anonymous
as they are part of a survey where we don't want the participants
to be identified.

However, you could modify the code in the the article "Find & ReplaceAll
on a batch of documents in the same folder” at:

http://www.word.mvps.org/FAQs/MacrosVBA/BatchFR.htm

by taking out all of the stuff about replacing the text and just have it
open each document as save it with a new name that was created by having
a counter that incremented by one for each document and combining the
current value of the counter with the word "Document"

--
Hope this helps,


Yes, it helps a lot. Thanks a lot
for your help and advice.


Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my
services on a paid professional basis.


  #5   Report Post  
Posted to microsoft.public.word.docmanagement
s[_2_] s[_2_] is offline
external usenet poster
 
Posts: 41
Default renaming word files

On Nov 9, 5:49*am, "Graham Mayor" wrote:
Are the files named *exactly* as you have shown them or are they named with
the names of the persons eg GrahamMayor1.doc DougRobbins2.doc etc?

As Doug indicates it would be possible to use a batch process to rename
files, but if they are named as you have indicatedhttp://www.bulkrenameutility.co.uk/Main_Intro.phpis by far the simplest way
to rename the files (and infinitely faster than using a Word macro to do
so).

They are named as I indicated excluding few of them. Thanks for
the link and your reply. I appreciate that.
--

Graham Mayor - *Word MVP

My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Renaming File Save Location Folder for Microsoft Word 2007 ron37 Microsoft Word Help 5 March 2nd 09 03:43 PM
Renaming a lot of files Ansie Microsoft Word Help 6 October 21st 08 01:13 PM
Auto renaming files Juliann Microsoft Word Help 1 July 7th 05 02:28 PM
Renaming files ChrisR Microsoft Word Help 1 February 8th 05 07:11 AM
Renaming Word 2002 "Paragraph and Character" styles Mark K Formatting Long Documents 5 January 22nd 05 05:45 AM


All times are GMT +1. The time now is 08:24 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"