New Excel Forum

This forum has been moved to TeachExcel.com

Ask all future questions in the New Excel Forum.

ExcelKey

Deleting 1 character out of several excel file names

Formulas, Functions, Formatting, Charts, Data Analysis, etc.

Deleting 1 character out of several excel file names

Postby Johnsond » Wed Dec 21, 2011 11:14 am

I cannot figure out if there is a way to delete 1 character from several file names within an excel folder. Each file has the same naming convention and when the file is created, it is systematically created with an & in it. The & blocks it from being able to be loaded into a network for viewers. Is there a way in excel to delete that one character out of each of those file names within a folder without having to do it manually, individually?
  • 0

Johnsond
Rookie
 
Posts: 1
Joined: Dec 21, 2011
Reputation: 0

Re: Deleting 1 character out of several excel file names

Postby Don » Wed Dec 21, 2011 11:57 am

You could do this with a macro. Are you talking about changing the file name after it has been created and saved or before it is saved? Ideally, it would be best to have the program that names the files just not include the ampersand. Is that possible?
  • 0

Don
Moderator
 
Posts: 733
Joined: Dec 4, 2011
Reputation: 2
Excel Version: 2010

Re: Deleting 1 character out of several excel file names

Postby Sisyphus » Thu Dec 22, 2011 3:46 am

Hi,

Excel files or not, this isn't an Excel question. The solution lies in renaming files. Excel can't do that. VBA can, and the code might be contained in an Excel workbook. I suggest to give your question another name. It doesn't matter if you want to delete a character or add two or replace some. What you need in all of these cases is code to rename files.

Regards,
:D
  • 0

Have a great day! :D

Sisyphus
I do this for "honour and country" - much less of the latter, actually.
If I helped you, award points, plenty of them.
If I bored you, deduct points for being too long-winded. (I know, :lol)
Sisyphus
Former Moderator
 
Posts: 4454
Joined: Dec 7, 2011
Location: Shanghai
Reputation: 203
Excel Version: 2010


Return to General Excel Questions

Who is online

Users browsing this forum: No registered users and 266 guests