+ Reply to Thread
Results 1 to 5 of 5

Renaming photo names 1 - 10 randomizing the images or file numbers.

  1. #1
    Registered User
    Join Date
    10-11-2003
    Posts
    79

    Renaming photo names 1 - 10 randomizing the images or file numbers.

    edit:title says 10 photos.. I meant 9 total.

    Basically I have a folder... call it PHOTOS

    C:PHOTOS>

    1.jpg 'tree
    2.jpg 'apple
    3.jpg 'yadayada
    4.jpg
    5.jpg
    6.jpg
    7.jpg
    8.jpg
    9.jpg

    I am looking to randomize these photos by having my vba code run a few extra lines for this ( additional code im seeking here, now)

    where it will randomize all 9 photos.. and rewrite new #'s 1 - 9 ... so see where tree is 1.jpg.. it may on random become 7.jpg.. and see apple is 2.jpg that may randomize to be rewritten 1.jpg..

    But importantly when finished they all are renamed 1 to 9 jpgs again and without duplicate images.. like 1.jpg (tree) ends up 7.jpg and 9.jpg..

    Is this big coding? or fairly simple I have absolutely no idea how to start this.. Ive never worked with rewriting files yet alone randomizing them and making sure they all are still renamed 1 to 9 with out a duplicate imagine written as two jpgs..

    Dont want to take up anyones time, I did search the net but ca me up with nothing ... if you know a link that already has this code please let me know.
    If youve already done this in any previous projects please paste an example.

    Thank you!

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Renaming photo names 1 - 10 randomizing the images or file numbers.

    maybe this can get you started
    http://www.excelforum.com/excel-new-...-new-post.html

    my contribution is post #16
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Renaming photo names 1 - 10 randomizing the images or file numbers.

    Try this

    It uses a temp folder in C:photos\photostemp. Just create this folder first and it also assumes that only jpg files are in this folder. I had to add the 5 second delay to make it work.

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

  4. #4
    Registered User
    Join Date
    10-11-2003
    Posts
    79

    Re: Renaming photo names 1 - 10 randomizing the images or file numbers.

    omg you rock!

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Renaming photo names 1 - 10 randomizing the images or file numbers.

    Glad it worked. Thanks for the reputation points

+ 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. Replies: 5
    Last Post: 10-17-2017, 12:23 AM
  2. [SOLVED] Codes to extract file names in folder & renaming sheets
    By Navin Agrawal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2016, 12:12 PM
  3. Save Images Using File Names From Column
    By R12345 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2016, 03:07 AM
  4. Renaming File Names using Batch Commands
    By Smudger1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2015, 09:33 AM
  5. import file names from images
    By visionwindowfilms in forum Excel General
    Replies: 15
    Last Post: 05-07-2014, 05:54 AM
  6. Replies: 15
    Last Post: 08-27-2012, 10:13 AM
  7. Renaming file names
    By Raury in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-07-2012, 10:39 AM

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