Rename files in bulk using macro | Excel VBA

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 190

  • @KamarudheenCK
    @KamarudheenCK 4 ปีที่แล้ว +2

    This is unbelievable, man, you saved my life. it's so simple to use, download the .xlsm file, choose folder path. assign the names to be renamed, press button finish, The magic happens. :)

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว +2

      Thank you dear. Stay connected😃😃

  • @BlakJak206
    @BlakJak206 4 ปีที่แล้ว +1

    I've been trying to figure out how to do exactly this literally all day! So many websites and videos made it seem so complicated and used so many more lines of code, and yet what you did is so simple and took hardly any time to do! Thank you so much!
    P.S. I know absolutely nothing about VBA and was able to get this working in about 10 minutes or so. Don't know how this works, but it gets the job done so can't complain.

  • @ve6571
    @ve6571 ปีที่แล้ว

    It's just amazing. I spent 3 hrs on some complicated codes. And finally this helped me quickly. Thank you so much.

  • @SaSeshen
    @SaSeshen ปีที่แล้ว

    This is literally game changing code for me... I had over 1,000 files I needed to convert to a different naming system and I thought I was going to die if I had to do it manually... now I just press 3 buttons... Christ this is a miracle!!!

  • @kathleenmontiel2056
    @kathleenmontiel2056 4 ปีที่แล้ว +7

    I can't believe someone would share such a valuable tool. I am super grateful for this. You are amazing. Thank you very much!

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      Glad it was helpful! Stay connected! :-)

  • @scottnantell6029
    @scottnantell6029 5 ปีที่แล้ว +17

    First macro runs fine. The 2nd didn't work and kept generating a run-time error.

  • @cheungcassie3047
    @cheungcassie3047 4 ปีที่แล้ว

    I cant believe how come you can be so kind to save the world's time!! Thanks so much mate!!!

  • @susmithasunil6611
    @susmithasunil6611 4 ปีที่แล้ว +2

    You are a saviour❤️ Thank you so muchhhhhhhh.. So easy to follow and completed task with out any error. 😍

  • @Destine77
    @Destine77 5 ปีที่แล้ว

    Thank you so very much! This is a task that I complete monthly. You have reduced the time in accomplishing this task substantially.

  • @techiesahamad5979
    @techiesahamad5979 2 ปีที่แล้ว

    Very much useful tutorial for novice users. It served my purpose easily. Thank you Kamal.

  • @martianboy9886
    @martianboy9886 7 ปีที่แล้ว +2

    This is absolutely amazing. I'm new to coding, but I am motivated to learn due to my new job. Thank you for the help!

    • @xtremeExcel
      @xtremeExcel  7 ปีที่แล้ว

      Thank you for the feedback. Keep supporting.. :-)

  • @djmontoro
    @djmontoro 7 ปีที่แล้ว

    Thanks, this is very useful for my job. I always need to rename a lot files in a given order one by one, but now I will use a custom order list in excel and them run this code. It will save me a lot of time.

  • @techfununlimited6579
    @techfununlimited6579 11 หลายเดือนก่อน

    Did what exactly i was looking for... Thanks a lot... Earn a subscriber...

  • @Jeff_Gaudette
    @Jeff_Gaudette 3 ปีที่แล้ว +1

    I sub'ed.
    Great tool & very gracious of you to share the code!

  • @bayu2861
    @bayu2861 6 หลายเดือนก่อน

    great videos , just a question if i want to rename the file and copy to another path ? the old file list in different sub folder

  • @namanbasantani
    @namanbasantani 4 ปีที่แล้ว +2

    Superb man.. you are too good. Thanks yaar brother..

  • @MariaOrtiz-t3e
    @MariaOrtiz-t3e 9 หลายเดือนก่อน

    Thanks Kamal!! This will save me a lot of time!!

  • @javierdavila24
    @javierdavila24 3 ปีที่แล้ว +1

    Everything runs very well. Thank you for share with us

  • @mohammedkabiri6485
    @mohammedkabiri6485 4 ปีที่แล้ว +1

    Hi Kamal, is there a way to possibly modify the macro, so instead of showing only the files names inside the folder, it will show the name of files in the subfolders as well, so when we click on "Get Files Names' it displays all the files names? Thank you very much :)

  • @laraszepesi5928
    @laraszepesi5928 2 ปีที่แล้ว

    Many thanks, I have been looking for an easy solution. :)

  • @dandanakan0
    @dandanakan0 4 ปีที่แล้ว

    dear Kamal, thank you very much, and much appreciated it.
    all the best

  • @cookieaddictions
    @cookieaddictions 2 ปีที่แล้ว

    I successfully did this before but now when I try to run the first part to fetch the names nothing happens. It just brings up a list of macros and ask me if I want ti run it and when I select run nothing happens. I’m not sure what I’m doing wrong, I did exactly what you did in the video.

  • @prashantchauhan449
    @prashantchauhan449 4 ปีที่แล้ว +1

    Hi Kamal, Thanks for sharing such valuable knowledge, i also updated the code as you taught, but unable to get the folder path in the bar, like as you have shared a template file , Please advise

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      Can you share your code/files with me so that I can debug?

  • @aswathkn1719
    @aswathkn1719 5 ปีที่แล้ว +4

    This is life savior. Thanks a lot for this tool

  • @maksim0933
    @maksim0933 ปีที่แล้ว

    Very clear video and explanation and code, I subscribed 👍

  • @felixwijaya868
    @felixwijaya868 7 ปีที่แล้ว +1

    Hi sir, is that possible to sort it as date modified when you fetch the name? thanks

  • @BharatPatel-vb5xc
    @BharatPatel-vb5xc 9 หลายเดือนก่อน

    How if in case there are xls files if we can change the sheet name as well at the same time

  • @ranajsingh
    @ranajsingh 4 ปีที่แล้ว +1

    absolutely simple and clear piece of code..! great job.! kudos for this knowledge sharing..!

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      Thank you for the feedback.. Stay connected! :-)

  • @bsanju585
    @bsanju585 4 ปีที่แล้ว

    Brother tell us how did you create that 3 bottons please

  • @stamatarsenikos9708
    @stamatarsenikos9708 3 ปีที่แล้ว +1

    excellent solution. great coding.

  • @murugantgi
    @murugantgi 3 ปีที่แล้ว

    Thanks for the video. The 2nd coding is not working. It’s shows Run-time error ‘5’; . Invalid procedure call or argument. Any thoughts why it’s not working?

  • @ujjawalso
    @ujjawalso 4 ปีที่แล้ว

    Can we create multiple folders with desired excel document inside all folder in bulk?

  • @rochellejennings5280
    @rochellejennings5280 6 ปีที่แล้ว +2

    Great video thank you. Can this also be used to change folder names too?

    • @xtremeExcel
      @xtremeExcel  6 ปีที่แล้ว

      sure. .I'll post a tutorial on this subject soon.

  • @keuanganinsa1006
    @keuanganinsa1006 2 ปีที่แล้ว

    Excellent ...thanks a lot for u ...from Indonesia

  • @শেষযমানারকথা
    @শেষযমানারকথা 3 ปีที่แล้ว

    can u tell me pls which version is applicable of MS office? I use office 2007.here it is n't work.pls help & reply.

  • @EliasDaoud
    @EliasDaoud 5 ปีที่แล้ว

    Please can you try file names with space in your program in this video? does this work? example "C:\test\360_00 67.jpg" space included

  • @Bharani_0601
    @Bharani_0601 6 ปีที่แล้ว

    Hi Bro, you are fetching details into column A and B. Can we assign the same to some other column like D, E F ?

  • @SmartcadSoftwareSolutions
    @SmartcadSoftwareSolutions 5 ปีที่แล้ว +1

    Highly appreciated kamal
    Many thanks for your kindness

    • @xtremeExcel
      @xtremeExcel  5 ปีที่แล้ว +1

      Thank you for such a nice comment Tajammul! This really keeps me motivated to post such tutorials for community.

  • @mathconcept8635
    @mathconcept8635 3 ปีที่แล้ว

    Hi, we would follow up if the old file is Chinese font and show '?' & how can fix this?

  • @nimeshfaria1242
    @nimeshfaria1242 4 ปีที่แล้ว +1

    Thanks Kamal. Amazing and time efficient

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      Thank you Nimesh. Stay connected:-)

  • @MsTeebree
    @MsTeebree 3 ปีที่แล้ว

    Is there a VBA code that can search multiple folders and rename all of the files in the different folders? In column A I have the filepath down to the pdf that I want renamed and in Colum B I have what I want to change the name to.

  • @tongirri
    @tongirri 4 ปีที่แล้ว +1

    Thank you very much. It saved my time for renaming a lot of files.

  • @nikitakaushal6382
    @nikitakaushal6382 2 ปีที่แล้ว

    Thanksyou so much for help... Really appreciate ur support on call.

  • @roadlizard2651
    @roadlizard2651 2 ปีที่แล้ว

    Thank you sir! You just made my night!

  • @uzaktansertifika8168
    @uzaktansertifika8168 4 ปีที่แล้ว

    Dear Kamal, thank you so much for your helpful video.

  • @jomercasugay1406
    @jomercasugay1406 2 ปีที่แล้ว

    thank you for sharing!! truly amazing.. wish you success sir!

  • @Kiran994.
    @Kiran994. 4 ปีที่แล้ว +1

    It's really useful bro thanks🌹🌹🌹.

  • @keithmctaggart7663
    @keithmctaggart7663 5 ปีที่แล้ว +2

    can you add some code to include all files in subfolders of the folder chosen to rename please

  • @nonenone2858
    @nonenone2858 6 ปีที่แล้ว

    Hi, it possible to have a word file that was just created take some data(names and values) from inside it and automatically introduce those values in the title of the file? When I close the new document at exit to have the file renamed in my folder automatically by taking the data of choice from inside it?

  • @grumpyfan777
    @grumpyfan777 4 ปีที่แล้ว +1

    I use this to rename mp3 files when I rip some of my audiobooks. Windows media player can't find the names so I have to rename them. I was able to reformat the names how I wanted but I couldn't get it to add the .mp3 at the end so I had to add it manually. Am I doing something wrong?

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      It is hard to understand what exactly you have done and what has happened. Can you record a small video of what steps you have performed so that I can see?

  • @momowongmh3297
    @momowongmh3297 4 ปีที่แล้ว

    Hi can you make another version so that it can get all filenames inside a a big foldet which include subfolder? Thanks a lot

  • @srinuvenkat78
    @srinuvenkat78 4 ปีที่แล้ว

    Hi
    Could you do the video including buttons portion also and fetching names code is perfectly working but renaming code is not functioning and saying run time error.....

  • @debjani_d
    @debjani_d 6 หลายเดือนก่อน

    Why is it showing an error - run time error '53': File not found?

  • @SmaraVic
    @SmaraVic 11 หลายเดือนก่อน

    Hello. I hawe an issue. I receive an error when I try to renamd files that contain ș ț î ă â and. Di you hawe a solution for this?

  • @jacobjacqueline823
    @jacobjacqueline823 6 ปีที่แล้ว +1

    Hi I am trying to modify my file but unable to keep the format of the image.can you tell me how to keep the same format?

    • @xtremeExcel
      @xtremeExcel  6 ปีที่แล้ว

      please send me your file. excel.microk@gmail.com

  • @vernettep
    @vernettep 7 ปีที่แล้ว +3

    Thank you for this, however I cannot get it to work. I edited the macro so it points to a folder path where my files are stored and thought that would be all I needed to do, however it isn't working.

    • @xtremeExcel
      @xtremeExcel  7 ปีที่แล้ว

      Please share your file at excel.microk@gmail.com and I'll look into it..

    • @djmontoro
      @djmontoro 7 ปีที่แล้ว +1

      First time I run it didn't work, then I realized that when I copied the folder path from the window and paste it in the VB, it didn't show the last back slash "\". It need to have that last back slash in order to work.

    • @jasonkoth4761
      @jasonkoth4761 6 ปีที่แล้ว

      @@djmontoro Thank you this was my issue as well! Works great now

  • @ahrorkuldashev9603
    @ahrorkuldashev9603 4 ปีที่แล้ว +1

    Hi, thank you for the video! I was wondering if it would be possible to use folder picker with this video rather than hard coding the file path. Would appreciate if you have such code.

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      Yes it is possible as well as recommended way.

    • @binoyjohn6676
      @binoyjohn6676 4 ปีที่แล้ว

      ​@@xtremeExcel Thanks A lot for such a great video, Its appreciable if u can share Codes for picking Folder path from a specific cell in same workbook instead of pre-defined folder path, I tried to get a code for the same from internet, but i cound not make it. Thanks in advance for your support

  • @moas3060
    @moas3060 5 ปีที่แล้ว +1

    Hi, it is very useful. But unfortunately, it copies file extension with it. Is there any way that the file extensions should not be copied.

    • @xtremeExcel
      @xtremeExcel  5 ปีที่แล้ว

      Yes.. we can do it.. please attach your file (with code )to my email id and I'll send you the updated code..

  • @PremSingh-ry7ek
    @PremSingh-ry7ek 4 ปีที่แล้ว

    Great way of teaching

  • @latoyaj.harris620
    @latoyaj.harris620 6 ปีที่แล้ว

    LOVE!!!!!! You made this sooooo simple! Thank you! Thank you!!!

    • @xtremeExcel
      @xtremeExcel  6 ปีที่แล้ว

      Stay connected !!! :-)

  • @aristotleashok8990
    @aristotleashok8990 4 ปีที่แล้ว

    Hi dood, my files corrupting once macro done it's work... Gimme solution plz...

  • @stephenlefranc3805
    @stephenlefranc3805 4 ปีที่แล้ว

    Does this work for Mac I can't get the file names thing to open...

  • @mxrvxn08
    @mxrvxn08 2 ปีที่แล้ว +1

    it works! thank you.

  • @jaikishen100
    @jaikishen100 4 ปีที่แล้ว +1

    Suberb man keep it up..Thank u so much

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      Welcome 👍 Stay connected

  • @ifrazimanudeen4462
    @ifrazimanudeen4462 6 ปีที่แล้ว +1

    That’s a very useful and simple way of doing.
    Can this done for the sheet of Excel files in a folder.
    Say like there are 60 Excel Files with single sheet in each of them in same folder and I want to rename the sheet of every excel file.
    Please make a video for above request
    Thanks

    • @xtremeExcel
      @xtremeExcel  6 ปีที่แล้ว

      Thank you Ifraz. I'll plan for a video on this soon. However if you need this urgently, feel free to write to me at excel.microk@gmail.com

  • @822sanjeev
    @822sanjeev 6 ปีที่แล้ว

    Required macro to split the PDF file in to multiple files with different ranges of pages

  • @satijamanoj
    @satijamanoj 4 ปีที่แล้ว +1

    Awesome video. its a huge help

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      Thanks Manoj. Stay connected

  • @ulhas610
    @ulhas610 4 ปีที่แล้ว

    Hi,
    Using this simple code still useful in 2020. This works great, but now I'm trying for same name and I get this message:

    "Run-time error '58':
    File already exists"
    Debugging highlights this line "Name myPath & Cells(r, 1).Value As myPath & Cells(r, 2).Value"
    Any tips? if file name already exists then replace without asking or any msgbox
    .
    You help much more appreciate.

  • @chillalamol
    @chillalamol 6 ปีที่แล้ว +1

    Hey Thanks Boss, it help's me in my daily routine work. Thanks a a lot !

    • @xtremeExcel
      @xtremeExcel  6 ปีที่แล้ว

      @Amol. that's awesome.. stay connected..

  • @haroldlopez8900
    @haroldlopez8900 2 ปีที่แล้ว

    Legend!
    It helped me a lot! Thank you!

  • @fairyzhang8513
    @fairyzhang8513 4 ปีที่แล้ว

    Hello, your Excel VBA renamed all my document name at once, but the document version is not a PDF file anymore, could you please help me further, many thanks.

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      Did you put extension in the output file names?

  • @shubhamgupta9505
    @shubhamgupta9505 8 หลายเดือนก่อน

    I don't know my code is not working. Please help me out

  • @EliasDaoud
    @EliasDaoud 5 ปีที่แล้ว

    Moreover, to my previous comment and after using Name statement. I can say it is unstuck, failing or good-for-nothing. Unpredictable errors or fail to rename files (sure they are not opened, not readonly)

    • @xtremeExcel
      @xtremeExcel  5 ปีที่แล้ว

      Relax Elias. I am sure you must be doing something wrong. Share your code with me.

    • @EliasDaoud
      @EliasDaoud 5 ปีที่แล้ว

      @@xtremeExcel I am sure,
      can you tell me why one of the following lines work where the other not ? I am programmer (~33 years) for many Languages. and mainly Mech Eng. so I can understand you fast. (.JPG & .jpg work both)
      Name "D:\Test\660_000010.JPG" As "D:\Test\760_0009.JPG" work
      Name "D:\Test\660_000010.JPG" As "D:\Test\660_0009.JPG" doesn't work
      This is one of many
      Name "D:\Test\660_0008.JPG" As "D:\Test\660_0001.JPG" work
      Name "D:\Test\660_0000.JPG" As "D:\Test\660_0001.JPG" doesn't work

  • @MegaRockstar90210
    @MegaRockstar90210 4 ปีที่แล้ว +1

    Thank you so much for this!! This is a wonderful tool. I tried and it worked, however it is converting my PDF to file. How do I keep the .pdf? Thank you!

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      Can you share some more details of your input and outout. :-)

    • @MegaRockstar90210
      @MegaRockstar90210 4 ปีที่แล้ว

      @@xtremeExcel I am trying to change names of multiple PDF files. When I use the template and change the name, it converts it from .pdf to type: file. When I try to open the file it makes me select the output. I am able to then open it in PDF if I select "Open with Adobe". Is there a way to keep it in .pdf type after changing the name? I hope this makes sense.

    • @janetfrias3687
      @janetfrias3687 4 ปีที่แล้ว

      @@MegaRockstar90210 It worked for me by just adding .pdf to the end of the file name.

  • @ManojSingh-sb2ph
    @ManojSingh-sb2ph 5 ปีที่แล้ว +1

    Thanks lot sir it really very helpful for me thanks awsome 😊😃

    • @xtremeExcel
      @xtremeExcel  5 ปีที่แล้ว

      Thank you Manoj.. Please subscribe and share with your friends and help my mission to teach a million students.. :-)

  • @dieulinhnguyen6149
    @dieulinhnguyen6149 6 ปีที่แล้ว

    Is there anyway I can rename the files on google drive?

  • @linsuportable
    @linsuportable 5 ปีที่แล้ว

    Hello to all, I have 4000 files in .doc to convert into .docm. I thaught that the macro as shown in the video would have helped. Unfortunately this message is poping up "cannot run the macro. The macro may not be available in this workbook or all macros may be disabled"
    I have enabled all macros, still the same issue. Does anyone have a solution? Thank in advance

  • @medasbabu
    @medasbabu 4 ปีที่แล้ว

    Thanks will be using your code, just need to modify it so that it can rename files in the subfolder also.

    • @MsTeebree
      @MsTeebree 3 ปีที่แล้ว

      Did you come up with the fix so it could reach the subfolders also?

  • @suganthi1418
    @suganthi1418 5 ปีที่แล้ว

    Can you add a video or include code for extraction of files from zipped folder? Thank you

  • @vishalkumar-vt3xi
    @vishalkumar-vt3xi 4 ปีที่แล้ว

    You are not defining the variable r here, i think it would be a good practice to define all ur variables. Or do you think it is really not necessary to define variable r??

  • @kathyhoey4745
    @kathyhoey4745 6 ปีที่แล้ว

    Thank you very much. Worked like a charm!

  • @simplereef4854
    @simplereef4854 ปีที่แล้ว +1

    This macro has a major flaw. If the file is not English characters then the macro will fails. I have to write one additional subroutine to get around that problem.

    • @xtremeExcel
      @xtremeExcel  ปีที่แล้ว

      great. please post your updated code that others can also use.

  • @binoyjohn6676
    @binoyjohn6676 4 ปีที่แล้ว

    @Extreme Automation - Kamal Girdher Thanks A lot for such a great video, Its appreciable if u can share Codes for picking Folder path from a specific cell (In my Case "Sheet1"("O5")) in same workbook instead of pre-defined folder path, I tried to get a code for the same from internet, but i cound not make it. Thanks in advance for your support

  • @deepanatarajan5323
    @deepanatarajan5323 4 ปีที่แล้ว +1

    Super one !! thank you loads

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      Glad you liked it! :-)

  • @judenavin6926
    @judenavin6926 4 ปีที่แล้ว

    Can we rename pdf files using macro

  • @MegaTeeks
    @MegaTeeks 6 ปีที่แล้ว

    I am getting a "File not Found" error when I run the rename subroutine, do you know why it would do this?

    • @MegaTeeks
      @MegaTeeks 6 ปีที่แล้ว

      figured it out, the directory was missing the "\" at the end. Thanks!

  • @md-mohammed8455
    @md-mohammed8455 ปีที่แล้ว

    Sir , please share with some update in code., That is , no need extension name in file name, need only file name.
    Hope you understand sir
    Thanks,

  • @lakshmipathi5
    @lakshmipathi5 6 ปีที่แล้ว

    hi can you please help me out, how can we change folder name instead file name.

    • @xtremeExcel
      @xtremeExcel  6 ปีที่แล้ว

      sure. .I'll post a tutorial on this subject soon.

  • @raymoumita3032
    @raymoumita3032 3 ปีที่แล้ว

    Audio is not available

  • @구독자500명되면이같은
    @구독자500명되면이같은 5 ปีที่แล้ว

    macro may not be available on this workbook or all macros may be disabled

    • @aswathkn1719
      @aswathkn1719 5 ปีที่แล้ว

      Right click on get file names. Select macros. Fetch files..edit. and change the location

  • @upgradetechnicalskills3392
    @upgradetechnicalskills3392 5 ปีที่แล้ว

    Hi sir very helpful tips
    Can be used the same code for PDF files

    • @xtremeExcel
      @xtremeExcel  5 ปีที่แล้ว

      yes. it can be used for any file extension..

    • @upgradetechnicalskills3392
      @upgradetechnicalskills3392 5 ปีที่แล้ว +1

      Hi I have tried to PDF files it's not working.
      See I have more than thousands PDF files I want to rename at a time with the help of Excel VBA codding is it possible.

    • @xtremeExcel
      @xtremeExcel  5 ปีที่แล้ว

      Please send your code to me.

    • @upgradetechnicalskills3392
      @upgradetechnicalskills3392 5 ปีที่แล้ว +1

      Now it's working fine sir
      Due to some issue that is from my end.
      Thanks again for the most useful training.

    • @xtremeExcel
      @xtremeExcel  5 ปีที่แล้ว

      Great!

  • @dhananjay.gavali
    @dhananjay.gavali 5 ปีที่แล้ว

    Hi, I want to change extensions of files presents in subfolder.

    • @xtremeExcel
      @xtremeExcel  5 ปีที่แล้ว

      Hello Dhananjay, you don't need excel for this. Go to the folder and open command prompt. Then type:
      REN *.dat *.txt

    • @xtremeExcel
      @xtremeExcel  5 ปีที่แล้ว

      This will change all files having .dat extension and rename it to have .txt extension

    • @dhananjay.gavali
      @dhananjay.gavali 5 ปีที่แล้ว

      Thanks for reply. Actually i don't want to change dat or excel file. I want to change .val to .cvf. is it possible. Plz confirm.

  • @torque6389
    @torque6389 5 ปีที่แล้ว

    Nice video, subscribed!

  • @dipakjangam6018
    @dipakjangam6018 4 ปีที่แล้ว +1

    Veer good video i leran new thing

  • @pawelpala4050
    @pawelpala4050 5 ปีที่แล้ว +1

    Thank you for sharing.

  • @ambikathakur7384
    @ambikathakur7384 ปีที่แล้ว

    This isn't working for me
    I get an error

  • @loes9768
    @loes9768 5 ปีที่แล้ว

    Hi,
    This worked great before, but now I'm trying for another folder and I get this message:
    "Run-time error '58':
    File already exists"
    Debugging highlights this line "Name myPath & Cells(r, 1).Value As myPath & Cells(r, 2).Value"
    Any tips?
    Thanks :)

    • @xtremeExcel
      @xtremeExcel  5 ปีที่แล้ว

      As the message says. A file is already present there with same name.

    • @loes9768
      @loes9768 5 ปีที่แล้ว

      Turns out that in the column of the 'old' names, there was a file that had the same name as what I wanted one of the new name to be.
      I was only looking for duplicates in the same column at first.
      I renamed the old file name manually, and it worked :)

    • @EliasDaoud
      @EliasDaoud 5 ปีที่แล้ว

      Can this work for space in file names ? I tried, it not

  • @lakshmipathi5
    @lakshmipathi5 6 ปีที่แล้ว +1

    hi bro , how do change the folder name

    • @xtremeExcel
      @xtremeExcel  6 ปีที่แล้ว

      replied to your other comment.

  • @huynguyen7572
    @huynguyen7572 3 ปีที่แล้ว +1

    Great, thanks. I'm getting debug on Name myPath & Cells(r, 1).Value As myPath & Cells(r, 2).Value

    • @xtremeExcel
      @xtremeExcel  3 ปีที่แล้ว

      Thanks! Please share you file and screenshot of the error

    • @huynguyen7572
      @huynguyen7572 3 ปีที่แล้ว

      @@xtremeExcel
      This is the error: "Name myPath & Cells(r, 1).Value As myPath & Cells(r, 2).Value ". I don't know how to get the screenshot to send to you.

  • @iivansi3
    @iivansi3 6 ปีที่แล้ว

    man your code rulz. thank you very much sir :)