+ Reply to Thread
Results 1 to 10 of 10

How to Insert picture in excel from a folder

  1. #1
    Forum Contributor
    Join Date
    08-15-2015
    Location
    India
    MS-Off Ver
    Office 2016
    Posts
    227

    How to Insert picture in excel from a folder

    Hello Friends,

    am trying to insert an image from a folder base on the value in cell A2, and the image should show on Cell O3

    the image folder is D:\Labels\SPO\Ver2.0\Latest

    Also everytime the value of cell A2 changes it should replace the earlier image

    Please have a look, have attached the book with the vba code
    Attached Files Attached Files
    Last edited by Nirmall; 10-25-2023 at 10:15 AM.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,158

    Re: How to Insert picture in excel from a folder

    ???
    Please Login or Register  to view this content.
    ???

  3. #3
    Forum Contributor
    Join Date
    08-15-2015
    Location
    India
    MS-Off Ver
    Office 2016
    Posts
    227

    Re: How to Insert picture in excel from a folder

    Awsome, worked Like a charm

  4. #4
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,791

    Re: How to Insert picture in excel from a folder

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    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.

  5. #5
    Forum Contributor
    Join Date
    08-15-2015
    Location
    India
    MS-Off Ver
    Office 2016
    Posts
    227

    Re: How to Insert picture in excel from a folder

    Done that @AliGW

    thank u will follow the same next time as well

  6. #6
    Forum Contributor
    Join Date
    08-15-2015
    Location
    India
    MS-Off Ver
    Office 2016
    Posts
    227

    How to Insert picture in excel from a folder

    Hello mjr veverka,

    this forum is just so awesome, have been getting tremendous solutions, have one more thing which i want in vba.

    Now there is a sheet called "Metal 2L", in that there are two areas of data space. One is is yellow and the other one is in green.

    Now if we go to the yellow area and select cell "I2" and from the drop down we select an option, the same corresponding image is shown in cell "H16".

    For the above condition have inserted a vba code in the sheet u gave me, and it gives me the desired output.

    Now if we come to the green area, would like that to work the same way as how it works in yellow area, meaning

    in the green area if i select any value in cell "I35", and the corresponding image to show in cell "H49".

    Now my question is how can i incorporate another vba code which will help in getting desired output in green area. (please note i also want the vba in yellow area to work as how it is working now)

    Thank You
    Attached Files Attached Files
    Last edited by Nirmall; 10-28-2023 at 05:07 AM.

  7. #7
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,158

    Re: How to Insert picture in excel from a folder

    Try:
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    08-15-2015
    Location
    India
    MS-Off Ver
    Office 2016
    Posts
    227

    Re: How to Insert picture in excel from a folder

    Great, it worked like a charm, also if there is no image attached to a value, the older photo stays put, is there a way where if no image is available then it shows a blank image??
    Last edited by Nirmall; 10-30-2023 at 12:26 AM.

  9. #9
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,158

    Re: How to Insert picture in excel from a folder

    For example:
    Please Login or Register  to view this content.
    For variant 2, prepare a file called "noimage.jpg" (or set your own name for the file without an image and enter it in the code).

  10. #10
    Forum Contributor
    Join Date
    08-15-2015
    Location
    India
    MS-Off Ver
    Office 2016
    Posts
    227

    Re: How to Insert picture in excel from a folder

    Hello mjr veverka

    am back again, jus come across a small bump in the code

    Please Login or Register  to view this content.
    in the above code my images load on cell C15 and cell C49 respectively,

    i want the image to load on A23 and A57 respectively, can u please help as to waht changes i need to make in the code?

    Please note rest everything else is working great in the code u gave

    Regards

+ 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. [SOLVED] Show Picture From Picture Sheet Instead of External Folder Codes
    By ynab in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-29-2020, 09:08 AM
  2. Insert picture from folder in excel cell
    By ArH in forum Excel General
    Replies: 8
    Last Post: 02-17-2020, 07:56 AM
  3. Insert Picture from a Folder to Excel if it meets specific content
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2017, 06:17 PM
  4. VB code to insert picture when email picture not in excel
    By T_BOLT in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2014, 06:42 AM
  5. [SOLVED] Insert Picture to excel from subfolders and save as folder name
    By gincemathew in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-14-2013, 10:01 AM
  6. Insert newest Picture in folder into Spreadsheet
    By 123rich456 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2012, 02:39 PM
  7. Insert/format Picture From Folder
    By Vlad999 in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 01-18-2007, 10:23 PM

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