+ Reply to Thread
Results 1 to 10 of 10

Picture in a cell

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    10

    Picture in a cell

    Hi everyone,

    is it possible to convert an image from floating over a cell to being placed in a cell?
    my file consists of hundreds of images I cannot copy the image to my drive and then place it in a cell
    It is time-consuming. attached is an example of the file.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Picture in a cell

    See if this works :

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-05-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Picture in a cell

    Hi Thank you for your efforts, however, my goal was to place the images that are already in my workbook
    inside the cells. they default to float over the cells, your code appears to be retrieving images from my
    drive and placing them inside the cells. anyhow the code did not work

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Picture in a cell

    Where are your images stored on your computer ? What is the path to the images. They all need to be in the same folder.

  5. #5
    Registered User
    Join Date
    03-05-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Picture in a cell

    my images are not stored anywhere I download the file from an external system and all the images are
    placed over the cells, I just need the code to place them inside the cells that's it.

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Picture in a cell

    I've reviewed my code and found several mistakes. Please accept my apology for the errors.

    Instructions:

    Download all of your images into a single folder on your computer. The fPath in the code will include the full path to your images location.

    In this example, the image names will be entered into Column D. The images will be displayed in Column C. You can edit the macro code so the names are in a different column and the images display in a different column as well.

    NOTE: The image names in Column D DO NOT require the file extension.

    Study the code and edit as required. Let me know how it worked out for you or if you have any problems. I've verified the code works here.



    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-05-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Picture in a cell

    Thank you it worked perfectly, do you think it is possible to reverse the process,
    by that, I mean to save the pictures from the worksheet to the drive.

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Picture in a cell

    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-05-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Picture in a cell

    I really appreciate your efforts, it worked flawlessly! Thank you again!

  10. #10
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Picture in a cell

    You are welcome.

+ 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: 1
    Last Post: 03-08-2021, 10:27 PM
  2. Replies: 4
    Last Post: 07-23-2018, 02:02 AM
  3. [SOLVED] Insert Picture in cell, click commanbutton to rename picture, lock cell and remove button
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2014, 10:05 PM
  4. Replies: 6
    Last Post: 06-19-2014, 08:46 AM
  5. put picture into a cell and get picture name from another cell using Excel 2003
    By daqddyo1 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-24-2014, 06:59 AM
  6. Click on picture and run macro to replace existing picture with selected picture file
    By houseflipsheet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2014, 12:02 AM
  7. VBA for Picture insert at particular worksheet range. Picture name derived from cell.
    By Douglas2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2013, 01:16 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