+ Reply to Thread
Results 1 to 3 of 3

VBA to delete all shapes unless a macro is assigned to it

  1. #1
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Shropshire, England
    MS-Off Ver
    Excel 2007 /10 /13
    Posts
    118

    VBA to delete all shapes unless a macro is assigned to it

    Hi

    I have a sheet that has various shapes on it and I want to delete them all, except if the shape has a macro assigned to it
    is this possible?
    the simple code I'm using right now is just

    Please Login or Register  to view this content.
    thanks

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: VBA to delete all shapes unless a macro is assigned to it

    A quick test suggests this works, slightly to my surprise.
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: VBA to delete all shapes unless a macro is assigned to it

    Hi Bill
    Try this code
    Please Login or Register  to view this content.
    To be deleted. I didn't see the Stephen's code ..
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ 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. Lagging cursor when hovering over shapes with a macro assigned.
    By PlopNofear in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-06-2015, 05:51 AM
  2. [SOLVED] If shapes exist then delete
    By wrightyrx7 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2014, 07:21 AM
  3. [SOLVED] How to delete all Shapes in all WS within a WB
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-16-2013, 10:52 PM
  4. Delete all shapes in specified range with macro
    By digiac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-16-2013, 08:01 AM
  5. Delete shapes in a range macro not working
    By snoopyngd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-04-2011, 06:02 AM
  6. Delete Shapes in Range
    By pr4t3ek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2009, 02:40 AM
  7. Delete Shapes Error 400
    By dreicer_Jarr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2009, 01:55 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