+ Reply to Thread
Results 1 to 3 of 3

Macro To Delete Pictures or Autoshape

  1. #1
    Registered User
    Join Date
    05-26-2012
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010
    Posts
    9

    Macro To Delete Pictures or Autoshape

    Is there a code to delete general autoshapes without considereing the name? Right now I have
    Please Login or Register  to view this content.
    but the problem with that is it only deletes that specific picture according to its number/name. When I get rid of the picture number in the code it won't delete the rest of the other pictures because of the picture number/name. So is there a code to delete general shapes disregarding the specific name of the picture

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Macro To Delete Pictures or Autoshape

    Hello there,

    To begin first make a copy of your worksheet or workbook just in case this doesn't do what you want it to then try the below code.

    Please Login or Register  to view this content.
    To use this code:

    Hold down the Alt key and press the F8 key. In the space provided for a macro name type DeleteShapes then select the create option. Paste the code above in the space below the Sub DeleteShapes() and the End Sub. Then exit out of the VBA window. Press Alt+F8 again and then select the DeleteShapes option and select Run.

    Let me know if this works for you.

    Thanks!

    RVASQUEZ

  3. #3
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Macro To Delete Pictures or Autoshape

    Hi try this
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

+ 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