Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Macro to rename .doc

Hi,
I'm hoping that I can get some help here. I haven't written an excel macro
before. There is one goal that I am trying to accomplish:
I have two colums in a table, Old_Number and New_Number, then I have a
separate file with word documents that are named and saved under the old
number. Now there is not an Old_Number for every New_Number.

Is it possible to run down the Old_Number column, and everywhere that a
value appears, to have excel open up that particular document and perform a
'save as' function under the name of New_Number, maybe even into a new folder?

Any input is much appreciated :)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Macro to rename .doc

See the Name function
http://www.rondebruin.nl/folder.htm

You can loop through your list and name the files

--
Regards Ron de Bruin
http://www.rondebruin.nl



"InventoryQueryGuy" wrote in message
...
Hi,
I'm hoping that I can get some help here. I haven't written an excel macro
before. There is one goal that I am trying to accomplish:
I have two colums in a table, Old_Number and New_Number, then I have a
separate file with word documents that are named and saved under the old
number. Now there is not an Old_Number for every New_Number.

Is it possible to run down the Old_Number column, and everywhere that a
value appears, to have excel open up that particular document and perform a
'save as' function under the name of New_Number, maybe even into a new folder?

Any input is much appreciated :)



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Macro to rename .doc

Very nice article, Ron.

Best wishes Harald

"Ron de Bruin" skrev i melding
...
See the Name function
http://www.rondebruin.nl/folder.htm



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Macro to rename .doc

Thanks Harald

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Harald Staff" wrote in message ...
Very nice article, Ron.

Best wishes Harald

"Ron de Bruin" skrev i melding
...
See the Name function
http://www.rondebruin.nl/folder.htm





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rename of sheets by macro Harshad[_2_] Excel Discussion (Misc queries) 4 October 17th 08 01:09 PM
rename a workbook using a macro Jamesmsv Excel Programming 1 March 17th 06 02:52 PM
Rename Macro rmpete Excel Discussion (Misc queries) 3 February 11th 06 10:24 PM
rename macro Lois Excel Programming 1 October 13th 04 06:04 PM
macro to select next and rename cwilson[_2_] Excel Programming 1 May 28th 04 10:03 PM


All times are GMT +1. The time now is 05:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"