+ Reply to Thread
Results 1 to 6 of 6

select ALL Shapes

  1. #1
    Registered User
    Join Date
    09-18-2003
    Posts
    39

    select ALL Shapes

    Hello,
    I am looking the way to select all the shapes present in a sheet.
    Thx in advance,
    David

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello chibouki,

    Your title says select, but your code is deleting the objects. This code will delete all shapes on the active sheet.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    09-18-2003
    Posts
    39
    Thx,
    I got a syntax error on the line I put in bold.

    Please Login or Register  to view this content.
    For the futur, would there be a way to specify the Shapes type? For example, deleting only the "Oval"?

    Thx again,
    David

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    There's a typo

    Please Login or Register  to view this content.
    Should be

    Please Login or Register  to view this content.
    If your shapes are named Oval1, Oval2 etc
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,448
    Another alternative

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  6. #6
    Registered User
    Join Date
    09-23-2012
    Location
    san bernardino
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: select ALL Shapes

    This is great, I'm a beginner but needed to remove a ton of shapes that spread like a plague from constant copying and pasting and this did the trick. Thanks Leith Ross and royUK the code below worked a treat!
    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