LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default need macro for renaming bunch of excel files


Basically I have a bunch of excel files in the same folder as my mai
spreadsheet, all with different names.

What I want to do is have a macro in my main excel spreadsheet (whic
is named "EPPR External Timesheets Summary Template.xls") which wil
take ALL excel files inside the same folder as my main exce
spreadsheet and rename them sequentially to EX1.xls, EX2.xls
EX3.xls.... etc up to EX40.xls (any more than 40 files then th
ramainder will be ignored.

It doesnt matter which files get renamed in which order as long as the
start at EX1 and end at either the last file, or EX40 if theres mor
than 40 files.

So from what I can see it needs to

count the total number of .xls files in the same folder as the mai
spreadsheet which contains the macro.

Take one from this total (as we do not include my main spreadshee
which will contain this macro) to give the total number of files tha
need renaming.

Rename these files (EXCLUDING my main spreadsheet) to EX1.xls etc et
until they are all done, or until we hit EX40.

Would be extremely useful if someone has something like this already a
it would save me a load of time having to rename these files manually.

Thank

--
neowo
-----------------------------------------------------------------------
neowok's Profile: http://www.excelforum.com/member.php...nfo&userid=594
View this thread: http://www.excelforum.com/showthread.php?threadid=39488

 
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
Renaming excel files in a folder Rhett C[_2_] Excel Discussion (Misc queries) 1 January 29th 10 05:23 AM
Excel Renaming Files When Opening Using File Convertor William McCann Excel Discussion (Misc queries) 0 November 25th 09 03:41 PM
How to print a bunch of files form the list (excel)? Tojkior Excel Discussion (Misc queries) 0 June 9th 08 01:55 PM
Renaming Files w/Excel Confused VB Person Excel Discussion (Misc queries) 4 March 21st 08 09:26 AM
Batch renaming of many worksheets in Excel files? Lumen S Excel Discussion (Misc queries) 2 August 17th 06 09:48 PM


All times are GMT +1. The time now is 11:44 AM.

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

About Us

"It's about Microsoft Excel"