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
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.
Where the cell A2 is, in which sheet ?
- Battle without fear gives no glory - Just try
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 .
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
hi , i tired , but not working .
i put folder address
Pathslash = P & "D:\ALLFILES": U
You want:
Please Login or Register to view this content.
Please Login or Register to view this content.
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.
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.
Untested:
Please Login or Register to view this content.
Last edited by xladept; 09-10-2017 at 02:01 PM.
hi , thank you xladept and PCI .....
You're welcome and thanks for the rep!
hi , if you dont mind , can you help me on below link .
https://www.excelforum.com/excel-pro...her-sheet.html
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks