+ Reply to Thread
Results 1 to 8 of 8

[Help] Run-time error '1004': Unable to get the Insert property of the Pictures class

  1. #1
    Registered User
    Join Date
    10-29-2014
    Location
    Japan
    MS-Off Ver
    2007
    Posts
    6

    Question [Help] Run-time error '1004': Unable to get the Insert property of the Pictures class

    I am having problems running this code for displaying pictures in excel. I am a beginner, so I must be doing something wrong. When I run it I get the message "Run-time error '1004': Unable to get the Insert property of the Pictures class". When I depurate, excel marks this line that says: "With image_column.Worksheet.Pictures.Insert(url_column.Cells(i).Value)"

    This is the code:
    Please Login or Register  to view this content.
    My excel file looks like this
    \1



    I have tried also another code for importing the pictures and display them. I created the folder IMAGENES EXCEL in C:
    When I run it, I get the same error. and when I depurate I get this line marked: "With ActiveSheet.Pictures.Insert(PicPath & IconName & "1" & ".jpg")".

    Please Login or Register  to view this content.
    If anyone could help me I would be very grateful.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: [Help] Run-time error '1004': Unable to get the Insert property of the Pictures class

    The second code is working fine for me. Pls check the file name in the path

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: [Help] Run-time error '1004': Unable to get the Insert property of the Pictures class

    Hi h2ojuan,

    You have variable named as IconName, Is it a folderName in your PC or is it Picture Name?

    If it is folderName that you need to add "\" after it.

    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  4. #4
    Registered User
    Join Date
    10-29-2014
    Location
    Japan
    MS-Off Ver
    2007
    Posts
    6

    Re: [Help] Run-time error '1004': Unable to get the Insert property of the Pictures class

    : ) Sixthsense : ) , thank you very much for your help, I have tried to change that line, and still I got the same problem.

    Pls check the file name in the path
    Sorry, which file name? Do I have to give a name? Where do I have to write it? Do I have to select any column? Is excel going to know it is my column A the one who has the url? Thank you in advance.


    You have variable named as IconName, Is it a folderName in your PC or is it Picture Name?

    If it is folderName that you need to add "\" after it.
    Paresh J, Thank you very much for your help. Sorry, I don't understand. I have found this code on internet so it is not mine. I think I have to give excel a folder and a file name for saving the pictures... exactly where do I have to write it? The folder is PicPath, and file name is it Total? Sorry, I am very beginner with this. Thank you in advance.

  5. #5
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: [Help] Run-time error '1004': Unable to get the Insert property of the Pictures class

    Hi h2ojuan,

    If you got your solution then please mark this thread as SOLVED and click * Add Reputation to all those who help you on this.


    Regards,
    Paresh J

  6. #6
    Registered User
    Join Date
    10-29-2014
    Location
    Japan
    MS-Off Ver
    2007
    Posts
    6

    Re: [Help] Run-time error '1004': Unable to get the Insert property of the Pictures class

    Sorry, It is not solved yet.

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: [Help] Run-time error '1004': Unable to get the Insert property of the Pictures class

    Quote Originally Posted by h2ojuan View Post
    Sorry, which file name?
    Please check and confirm whether you have the Total1.jpg in the path ("C:\IMAGENES EXCEL\")

  8. #8
    Registered User
    Join Date
    10-29-2014
    Location
    Japan
    MS-Off Ver
    2007
    Posts
    6

    Re: [Help] Run-time error '1004': Unable to get the Insert property of the Pictures class

    Thank you very much. I have solved it adding a file with the name Total1.jpg to the folder. But that is not what I wanted... I wanted to download and display the pictures.
    What I wanted to do was what the first code I wrote does. I have been able to run it, and now I don't have the 1004 error. But after loading 2 pictures, I get a Microsoft Visual Basic "400" error, and doesn't keep downloading the next picture, the third one. I have attached the excel file. Thank you for helping me.Thumbnails Excel.xlsm

    Please Login or Register  to view this content.

+ 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. Ms-excel error '1004':"Unable to get the Paste property of the Pictures class"
    By japortella in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-26-2014, 08:50 AM
  2. Run-time error '1004': Unable to get the Insert property of the Pictures class
    By schmidt1962 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2013, 01:05 AM
  3. Run - time error '1004': Unable to get the Sum property of WorksheetFunction class
    By dylanrose in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 10:25 AM
  4. Run-time error '1004': Unable to set the Visible property of the Pictures class
    By wonderBOi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-12-2012, 08:42 AM
  5. Replies: 0
    Last Post: 10-03-2010, 12:10 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