+ Reply to Thread
Results 1 to 2 of 2

Macro embed photo based on cell contents

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    94

    Cool Macro embed photo based on cell contents

    I have seen a few examples online, but have not seen an example that works for me.

    I have photos in my desktop folder.

    I name photos based on the employee's ID number. So 123 would be 123.jpg

    I want to type in ID number in Column B and have the photo appear in Column A.

    I enclosed an example. Thanks for the help. Any macro or function that may work.

    PHOTO EXAMPLE.xlsm

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Macro embed photo based on cell contents

    Many of the techniques involve preloading all of the images into your excel spreadsheet. I assume that is what you are trying to avoid and instead want it to pull the image from the directory that has the pictures in it. For that you need macros and I think this tutorial will walk you through a solution:
    https://www.youtube.com/watch?v=r6KjcihBpoY
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

+ 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: 0
    Last Post: 10-31-2014, 03:58 PM
  2. Getting a photo based on a URL macro
    By starlev in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2014, 10:33 AM
  3. Macro to move row based on cell contents
    By alpha608 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2013, 04:08 AM
  4. Macro that will clear contents of cell based on format of text in adjacent cell
    By judasdac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2012, 01:56 AM
  5. Run macro based on cell contents
    By Billip in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2011, 06:55 PM
  6. Embed PDF / Photo(s)
    By hogman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-10-2010, 12:08 PM
  7. [SOLVED] Incert a photo into a cell based on info in another cell
    By azidrane in forum Excel General
    Replies: 3
    Last Post: 03-15-2006, 06:00 PM

Tags for this Thread

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