+ Reply to Thread
Results 1 to 9 of 9

insert pictures using a list of picture names

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    78

    insert pictures using a list of picture names

    I tried recording a macro where I copy the data value (pic name) and paste into the insert picture filename, but Excel does not record that.

    I have a list of picture file names in a column, and I would like to paste its corresponding picture in the cell to the right. What could I do to accomplish this?

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: insert pictures using a list of picture names

    try this code,

    Please Login or Register  to view this content.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Forum Contributor
    Join Date
    09-24-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: insert pictures using a list of picture names

    Try this...

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: insert pictures using a list of picture names

    xlbiznes,

    I get run-time error '1004': Unable to get the Insert property of the Picture class

    and debug highlights:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: insert pictures using a list of picture names

    moonsaga,

    I get run-time error '1004': Unable to get the Insert property of the Picture class

    and debug highlights:

    Please Login or Register  to view this content.
    Last edited by bsapaka; 01-10-2014 at 03:46 PM.

  6. #6
    Forum Contributor
    Join Date
    09-24-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: insert pictures using a list of picture names

    Quote Originally Posted by bsapaka View Post
    moonsaga,

    I get run-time error '1004': Unable to get the Insert property of the Picture class

    and debug highlights:

    Please Login or Register  to view this content.
    Where it says "insert path to pictures here" you will have to change this to the path where the pictures are.. ex.. c:/mydocs/mypics and also if your pictures are in the JPG format then you will need to change ".bmp" to ".JPG"

  7. #7
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: insert pictures using a list of picture names

    in the code it expect column a to have to image path something like this :

    c:\my images\image.jpg

    or an url

    http://www.reuters.com/resources_v2/...thead-logo.gif

  8. #8
    Registered User
    Join Date
    09-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: insert pictures using a list of picture names

    Moonsaga, I changed it, but I still get a 1004 error. Here is my code on that line:

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    09-24-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: insert pictures using a list of picture names

    What column are the picture names in? And can you upload a sample workbook?

+ 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. How to Insert pictures with fie names that match active cell value (vba)?
    By byujakedmb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2013, 11:25 PM
  2. List picture titles depending on how many pictures there are
    By c.seely in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-27-2013, 12:20 PM
  3. Replies: 3
    Last Post: 10-24-2012, 08:15 PM
  4. Showing A Picture From A List Of Pictures
    By Taislin in forum Excel General
    Replies: 1
    Last Post: 06-25-2012, 03:46 PM
  5. ComboBox linked to a list of names which when a name is chosen changes a picture ?
    By 1976dan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2012, 05:29 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