+ Reply to Thread
Results 1 to 10 of 10

image/file renaming within "image/file sets"

  1. #1
    Registered User
    Join Date
    10-17-2011
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    7

    image/file renaming within "image/file sets"

    Hello,

    I have been looking all through the forums and online and having difficulty getting a macro to rename images into sets. (all files located within one folder) I was not sure if this was possible or not but I thought that this forum would be the best place to start!

    Examples:

    1234_1.jpg
    1234_2.jpg
    1234_3.jpg
    abcd_1.jpg
    abcd_2.jpg
    abcd_3.jpg
    abcd_4.jpg

    I would like to get these named in the following sequence if it is possible:

    1234_1_of_3.jpg
    1234_2_of_3.jpg
    1234_3_of_3.jpg
    abcd_1_of_4.jpg
    abcd_2_of_4.jpg
    abcd_3_of_4.jpg
    abcd_4_of_4.jpg

    I hope this is enough information to work off of.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: image/file renaming within "image/file sets"

    Give this a try. Assumes the sheet name is Sheet 1 and Starting in Row 2 column A

    Please Login or Register  to view this content.
    Last edited by mike7952; 01-23-2013 at 11:33 AM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: image/file renaming within "image/file sets"

    I missed that you wanted to change these in the folder. Try this, change the path to your files.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-17-2011
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: image/file renaming within "image/file sets"

    Outstanding, quick and worked like a charm! Would it be possible to have a navigation window pop-up to find the folder rather than adjusting the macro?
    If not, it is quite alright.

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: image/file renaming within "image/file sets"

    This will do it

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-17-2011
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: image/file renaming within "image/file sets"

    Exactly what I was looking for! Thank you so much!!

  7. #7
    Registered User
    Join Date
    10-17-2011
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: image/file renaming within "image/file sets"

    Actually I just tried this latest one it seems to be just duplicating the first number:

    was:
    abc_1.jpg
    abc_2.jpg
    abc_3.jpg

    After running this script I have:
    abc_1_of_1.jpg
    abc_2_of_2.jpg
    abc_3_of_3.jpg

    I am looking for the naming to be like:
    abc_1_of_3.jpg
    abc_2_of_3.jpg
    abc_3_of_3.jpg
    Last edited by yozangwu; 01-23-2013 at 02:50 PM.

  8. #8
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: image/file renaming within "image/file sets"

    Oops this should do it

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: image/file renaming within "image/file sets"

    Great work mike
    Happy to Help

    VISHA

    Click *, if the suggestion helps you!
    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>> "Mark your thread as Solved"

  10. #10
    Registered User
    Join Date
    10-17-2011
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: image/file renaming within "image/file sets"

    That is perfect! Thank you so much Mike!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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