+ Reply to Thread
Results 1 to 12 of 12

rename multiple excel files as per its own cell value A2

  1. #1
    Forum Contributor
    Join Date
    04-25-2014
    Location
    India
    MS-Off Ver
    Excel pro plus 2021
    Posts
    186

    rename multiple excel files as per its own cell value A2

    hello friends ,
    i have over few hundred excel files xls and xlsx in same folder ,
    i would like to rename those files as per their own cell (value/string/character/word) mentioned in cell A2
    Last edited by raj soni; 09-10-2017 at 01:25 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: rename multiple excel files as per its own cell value A3

    Where the cell A2 is, in which sheet ?
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Contributor
    Join Date
    04-25-2014
    Location
    India
    MS-Off Ver
    Excel pro plus 2021
    Posts
    186

    Re: rename multiple excel files as per its own cell value A3

    A2 in sheet1 , in all excel files .
    there are 500 excel files in one folder ,
    each excel has its own name in its own A2 cell of sheet1 .

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: rename multiple excel files as per its own cell value A3

    Be really careful with this code:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Forum Contributor
    Join Date
    04-25-2014
    Location
    India
    MS-Off Ver
    Excel pro plus 2021
    Posts
    186

    Re: rename multiple excel files as per its own cell value A2

    hi , i tired , but not working .
    i put folder address
    Pathslash = P & "D:\ALLFILES": U

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: rename multiple excel files as per its own cell value A2

    You want:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: rename multiple excel files as per its own cell value A2

    Well, xladept beat me on the point and the code is very similar to what I add in mind but really smarter.
    Perhaps I will use
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    04-25-2014
    Location
    India
    MS-Off Ver
    Excel pro plus 2021
    Posts
    186

    Re: rename multiple excel files as per its own cell value A2

    yes its working , also last thing , would like to move on this micro if there is some error .
    coz i have few files which has same name/word/file name in A2 of sheet1
    Last edited by raj soni; 09-10-2017 at 01:42 PM.

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: rename multiple excel files as per its own cell value A2

    Untested:

    Please Login or Register  to view this content.
    Last edited by xladept; 09-10-2017 at 02:01 PM.

  10. #10
    Forum Contributor
    Join Date
    04-25-2014
    Location
    India
    MS-Off Ver
    Excel pro plus 2021
    Posts
    186

    Re: rename multiple excel files as per its own cell value A2

    hi , thank you xladept and PCI .....

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: rename multiple excel files as per its own cell value A2

    You're welcome and thanks for the rep!

  12. #12
    Forum Contributor
    Join Date
    04-25-2014
    Location
    India
    MS-Off Ver
    Excel pro plus 2021
    Posts
    186

    Re: rename multiple excel files as per its own cell value A2

    hi , if you dont mind , can you help me on below link .

    https://www.excelforum.com/excel-pro...her-sheet.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Rename Multiple PDF files in a folder per the list in Excel spreadsheet
    By vmanil75 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2017, 09:40 AM
  2. [SOLVED] Copy/Rename Multiple files in Excel
    By chris619 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-13-2017, 02:44 PM
  3. [SOLVED] Copy/Rename Multiple files using Excel values in columns
    By felizeng in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2017, 10:52 AM
  4. How to rename files at folder according to excel cell?
    By london7871 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2016, 06:34 AM
  5. Replies: 0
    Last Post: 03-04-2013, 02:37 PM
  6. Rename cell based on file name for multiple files
    By lmolokin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2012, 05:49 PM
  7. [SOLVED] How do you rename Multiple files using text from a cell in the file?
    By RandyR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2005, 03:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1