Closed Thread
Results 1 to 19 of 19

Export Images From Multiple Sheet Into a Folder

  1. #1
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Export Images From Multiple Sheet Into a Folder

    hi expert..
    i have excel file that contains multiple sheets. In every sheet in cell B6,C6,E6 always contains 3 picture with different type extension e.g. (.jpg, .jpeg, .png).
    i want to extract or export all images from multiple sheet into a folder name like "OK" with the new file name picture sequences number series, like photo1,photo2,photo3, etc...
    would you help me out with your vba or macro code to solve this problem..

    this my file attachment..

    any help greatly appreciated...

    john m
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Export Images From Multiple Sheet Into a Folder

    Rename the file extension to .zip
    Extract the zip file
    Browse to \xl\media, you will see all pictures in the excel file
    ❖ Please mark your thread is SOLVED if there has been offered a solution that works fine for you.

    ❖ If you like solutions provided by anyone, feel free to add reputation by clicking on ✶ Add Reputation bottom left of their posts.

  3. #3
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Export Images From Multiple Sheet Into a Folder

    thank but no fully work..i mean not all image can be extracted from every sheet
    where is the problem?

  4. #4
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Export Images From Multiple Sheet Into a Folder

    The pictures at C6 in every sheet are the same, so is C7. They are duplicate from only one picture.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Export Images From Multiple Sheet Into a Folder

    In every sheet in cell B6,C6,E6 always contains 3 picture with different type extension e.g. (.jpg, .jpeg, .png).
    Once inserted into Excel, they are all the same format. They do not retain the extension information.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Export Images From Multiple Sheet Into a Folder

    hi..huuthang_bd & Ali...thank for your helping but for reason i want the duplicate pict can be exported too..maybe using vba or macro

  7. #7
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Export Images From Multiple Sheet Into a Folder

    Below code will generate a folder at the file's location, named by [filename]_Pictures with sub folders are named by sheet name inside, inside each subfolder is all pictures on the sheet.
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Export Images From Multiple Sheet Into a Folder

    yes...really you're great!!! thank again for your kindness
    Last edited by AliGW; 07-01-2020 at 06:31 AM. Reason: Please don't quote unnecessarily!

  9. #9
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Export Images From Multiple Sheet Into a Folder

    hi..huuthang_bd
    sorry maybe i missing it about my request..
    after run your code the picture always create duplicate..
    i just want picture exported as is as look into every each sheet
    would you help me out ...thanks
    Last edited by Jhon Mustofa; 07-01-2020 at 07:12 AM.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Export Images From Multiple Sheet Into a Folder

    i just want picture exported as is.
    Please re-read post #5: all three images on each sheet, once imported into Excel, are exactly the same.

  11. #11
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Export Images From Multiple Sheet Into a Folder

    Sorry, I don't understand. What mean is "exported as is as look into every each sheet"?

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Export Images From Multiple Sheet Into a Folder

    Jhon said this:

    In every sheet in cell B6,C6,E6 always contains 3 picture with different type extension e.g. (.jpg, .jpeg, .png).
    He has not understood that the three images, once imported into Excel, no longer have these extensions and are now all in the same format.

  13. #13
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Export Images From Multiple Sheet Into a Folder

    hi hi..huuthang_bd
    like in my sample above i have 5 sheets. for every one sheet contains 3 picture so total pictures in 5 sheets = 15.
    after run your macro code, total picture success exported = 30 that overload should be keep 15.
    here this picture AFTER RUN MACROAttachment 684916

    here this SHOULD BE THAT I WANT Attachment 684917

  14. #14
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Export Images From Multiple Sheet Into a Folder

    I can't see your pictures. However, before I posted the macro, I have tested it. When i ran the macro, it generated a folder with 5 sub folders inside and each sub folder had 3 pictures inside.
    Last edited by AliGW; 07-02-2020 at 12:04 AM. Reason: Please don’t quote unnecessarily!

  15. #15
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Export Images From Multiple Sheet Into a Folder

    hi..
    i have try again with new file the result is not correct...
    total picture after success exported = 2 SHOULD BE ONLY 1...why picture has exported to be duplicate?
    please, check my new attachment file to make sure it wrong..
    Attached Files Attached Files
    Last edited by Jhon Mustofa; 07-02-2020 at 10:36 AM.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Export Images From Multiple Sheet Into a Folder

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

  17. #17
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Export Images From Multiple Sheet Into a Folder

    hi aligw...thank you but this my original post not from other sites (a cross post)
    the really true my post

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Export Images From Multiple Sheet Into a Folder

    Jhon - you may wish to rethink that response. If you do not provide the cross-post link (I know where the cross-post is), then you will be banned from posting here again for ten days and this thread will be locked.

    To be clear - it does not matter in which order the threads were created.

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Export Images From Multiple Sheet Into a Folder

    Last call for that cross-post link, Jhon.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Trying to add multiple images to a spreadsheet from a file folder.
    By mattj6945 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-13-2019, 12:39 PM
  2. Export all excel workbooks (with multiple sheets) in folder to PDF
    By gabriellewills in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2019, 02:13 AM
  3. [SOLVED] Export all charts in each sheet to a folder
    By rosscortb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-15-2018, 09:52 AM
  4. [SOLVED] Extracting Multiple .jpeg Images link in a folder
    By bhushh009 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-26-2016, 03:38 PM
  5. Export Multiple Sheets as Images
    By zealot in forum Excel General
    Replies: 3
    Last Post: 08-04-2014, 07:32 AM
  6. Replies: 4
    Last Post: 12-11-2013, 04:13 AM
  7. Create folder & export sheet, not working
    By rinser in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-29-2009, 09:00 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