Consulting

Results 1 to 15 of 15

Thread: Solved: Change filenames according to a list

  1. #1

    Question Solved: Change filenames according to a list

    Hi, I am looking to change some filenames according to a list. I hope someone can assist.

    In one column, I have a list of current filenames, and in another column, I have a list of filenames to which I would like them to be changed.

    ie. In my pathetic example below, I would like A.jpg changed to 1.jpg, and B.jpg to 2.jpg.

    A.jpg 1.jpg
    B.jpg 2.jpg

    Can this be achieved?

    Thank you

  2. #2
    VBAX Master XLGibbs's Avatar
    Joined
    Jan 2006
    Location
    state of confusion, but vacation in denial
    Posts
    1,315
    Location
    Try this template I created for just such a quandry. It is self explanatory, if you need more information..let me know.

    The tempalte allows you to identify files and folders to copy/move and/or rename with multiple source and destinations.

    If you need more, i have a KB submission with sample code for copying and/or renaming files located HERE
    If you have posted the same question at multiple forums, please read this IMPORTANT INFO.

    Please use the thread tools to mark your thread Solved


    Please review the Knowledge Base
    for samples and solutions , or to submit your own!




  3. #3
    Thanks. That template is very powerful. I know I will be using that in the future.

    I have one question. I have unsuccessfully attempted to change the full filename, rather than enter something between the filename and extension. How do I do this?

  4. #4
    VBAX Master XLGibbs's Avatar
    Joined
    Jan 2006
    Location
    state of confusion, but vacation in denial
    Posts
    1,315
    Location
    Use this earlier version in which the custom file name option does what you need to by renaming everything left of the extension with whatever you type. Let me know if any issues....it was an earlier model of the same thing with the rename option being for full file name.

    To rename Test.xls to Sample.xls you would type Sample in the custom rename column...
    If you have posted the same question at multiple forums, please read this IMPORTANT INFO.

    Please use the thread tools to mark your thread Solved


    Please review the Knowledge Base
    for samples and solutions , or to submit your own!




  5. #5
    Which earlier version?

  6. #6
    VBAX Master XLGibbs's Avatar
    Joined
    Jan 2006
    Location
    state of confusion, but vacation in denial
    Posts
    1,315
    Location
    Whoops the file didnt stick as it was attached elsewhere..here it is...
    If you have posted the same question at multiple forums, please read this IMPORTANT INFO.

    Please use the thread tools to mark your thread Solved


    Please review the Knowledge Base
    for samples and solutions , or to submit your own!




  7. #7
    It is performing the same function as the latest version.

    ie. It is changing A.jpg to A_1.jpg, rather than 1.jpg.

    Any ideas?

  8. #8
    VBAX Master XLGibbs's Avatar
    Joined
    Jan 2006
    Location
    state of confusion, but vacation in denial
    Posts
    1,315
    Location
    I just fixed it...this gives both options. In the rename box choose "Full Name" and you will type the desired name without the extension in the column for rename...sorry about that..this is a work in progress.
    If you have posted the same question at multiple forums, please read this IMPORTANT INFO.

    Please use the thread tools to mark your thread Solved


    Please review the Knowledge Base
    for samples and solutions , or to submit your own!




  9. #9
    That is fantastic. Thanks so much. I just hope other people read this, because it is very useful.

  10. #10
    VBAX Master XLGibbs's Avatar
    Joined
    Jan 2006
    Location
    state of confusion, but vacation in denial
    Posts
    1,315
    Location
    Thanks! I actually have this pending addition to the VBAX Knowledge Base...I just have to update my submission with the modified tempalte you used.

    Please mark the thread solved if you can. Thanks again!
    If you have posted the same question at multiple forums, please read this IMPORTANT INFO.

    Please use the thread tools to mark your thread Solved


    Please review the Knowledge Base
    for samples and solutions , or to submit your own!




  11. #11
    VBAX Master Norie's Avatar
    Joined
    Jan 2005
    Location
    Stirling, Scotland
    Posts
    1,831
    Location
    Gibbs

    How exactly is this meant to work?

    I've double-clicked all over the place and still nothing.

  12. #12
    VBAX Master XLGibbs's Avatar
    Joined
    Jan 2006
    Location
    state of confusion, but vacation in denial
    Posts
    1,315
    Location
    Are you kidding me?

    Double click in column B or C to browse for a Source or Destination directory. Filename goes into Column A, you can choose rename options (or not). It is pretty self explanatory, and I just open the file submitted and it worked fine.

    Let me know, I can email you a copy that I also know works fine. Sorry you are having trouble with it.
    If you have posted the same question at multiple forums, please read this IMPORTANT INFO.

    Please use the thread tools to mark your thread Solved


    Please review the Knowledge Base
    for samples and solutions , or to submit your own!




  13. #13
    VBAX Master Norie's Avatar
    Joined
    Jan 2005
    Location
    Stirling, Scotland
    Posts
    1,831
    Location
    Gibbs

    I wasn't kidding.

    Perhaps it was a problem my side.

    I've just downloaded the file again and it does appear to work.

  14. #14
    Can this be used to rename the file name extension? If not is there another way to do so or can this be edited to handle this?
    my site: www.ecboardco.com
    was built w/ a majority of the assistance from the board members here... thanks VBAX.

    Just because I see something, doesn't mean that what's actually happening is what I see.

    You don't get from 0-90 by standing still!

  15. #15
    I know it has been solved but here is another one.

Posting Permissions

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