+ Reply to Thread
Results 1 to 6 of 6

VBA delete all pictures in sheet

  1. #1
    Registered User
    Join Date
    03-27-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    13

    VBA delete all pictures in sheet

    Hi, I want to delete all pictures on a certain sheet (AR PROJ) and found this code:

    Please Login or Register  to view this content.
    But apparently, I receive this error message: "Run-Time error '438' Object doesn't support this property or method"
    Can someone explain me what's wrong?

    Thanks a lot!

    Please Login or Register  to view this content.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA delete all pictures in sheet

    perhaps replace
    Please Login or Register  to view this content.
    by
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    03-27-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: VBA delete all pictures in sheet

    No, this doesn't do anything at all. It looks like my formula gives an error when there's only one picture to delete? Does that makes sense?

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA delete all pictures in sheet

    what kind of pictures are they-activex images?

  5. #5
    Registered User
    Join Date
    03-27-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: VBA delete all pictures in sheet

    No idea to be honest... They are pictures copy/pasted by using a macro but each month I need to delete them.

    Selecting the pictures using the code works. I only get an error when trying to delete them by using a macro AND (recently found out) when there's only 1 picture on the sheet.
    Deleting multiple pictures using the macro below works fine.

    Please Login or Register  to view this content.

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA delete all pictures in sheet

    then perhaps
    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)

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