+ Reply to Thread
Results 1 to 10 of 10

How to delete all Shapes in all WS within a WB

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    How to delete all Shapes in all WS within a WB

    Hello All,
    I'm looking for a code to delete all Shapes (Button Form Control) in all worksheets (some ws have more than 1 shapes, some ws does not have any). Thank you for your help.

    This code works in all ws
    Please Login or Register  to view this content.
    Regards,
    tt3
    Last edited by tuongtu3; 05-16-2013 at 10:52 PM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: How to delete all Shapes in all WS within a WB

    Try this...

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to delete all Shapes in all WS within a WB

    Hi AlphaFrog,
    The code works fine. Thank you for your time and help.

    Regards,
    tt3

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: How to delete all Shapes in all WS within a WB

    Hi tuongtu3,

    Try this:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  5. #5
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to delete all Shapes in all WS within a WB

    Hi Robert,
    The codes works and thank you very much for your help.

    Regards,
    tt3

  6. #6
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to delete all Shapes in all WS within a WB

    Hi all,
    I make a mistake. I ony need to delete Shape in 5 ws (ws1 - ws5) and I also want to delete Command Button (ActiveX Control). Please help me to re-code.

    Regards,
    tt3

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: How to delete all Shapes in all WS within a WB

    The sheets names are ws1, ws2 .... ?
    If solved remember to mark Thread as solved

  8. #8
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to delete all Shapes in all WS within a WB

    I meant "sheet1", "sheet2", "sheet3", "sheet4", "sheet5",

    something like this???

    Please Login or Register  to view this content.
    Regards,
    tt3

  9. #9
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: How to delete all Shapes in all WS within a WB

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to delete all Shapes in all WS within a WB

    Hi AlphaFrog,
    Thank you very much for your help again.

    Regards,
    tt3

+ 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