+ Reply to Thread
Results 1 to 3 of 3

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

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    Monterey, California
    MS-Off Ver
    Excel 2007
    Posts
    40

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

    I have been working on a macro that automates the import of pictures (png) into a excel workbook. I am using Excel 2010. I am searched on the internet and can't seem to find a real answer as to why the error in my subject line is occuring. My code is simple - I hope it is a simple answer!


    Please Login or Register  to view this content.


    The ultimate goal of this macro is not just to import the pictures in - but to also name them consistently (once in the activesheet). Excel gives them random names "Picture 24372", etc. I want to have the name of the picture be the same as the filename (minus the *.png).

    Thank you!

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2010
    Posts
    2,309

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

    I get the same error you do when my PATH/Filename is not correct....I would check that first....
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Registered User
    Join Date
    05-08-2013
    Location
    Monterey, California
    MS-Off Ver
    Excel 2007
    Posts
    40

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

    Thanks for your help! i got it solved. You were correct. Also discovered that Excel 2010 only puts in links using that - so I am using ActiveSheet.Shapes.AddPicture to embed the images.

+ 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. Run-time error '1004': Unable to get the _NewEnum property of the DrawingObjects class
    By Oppressed1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2013, 12:09 PM
  2. 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
  3. Run-time error '1004' Unable to set the Locked Property of the Range Class
    By Jerums in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 03-04-2013, 04:22 PM
  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