A little trouble with shapes - Page 2
Attend Excelapalooza
Thanks Thanks:  0
Likes Likes:  0
Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: A little trouble with shapes

  1. #11
    Board Regular PatOBrien198's Avatar
    Join Date
    Sep 2017
    Location
    North Georgia
    Posts
    182
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: A little trouble with shapes

     
    Another approach would be to add some text to the "Alternative Text" property of the pics that you do not want to delete.

    Then the code would be something like:
    Code:
    for each sh in ActiveSheet.Shapes
    
        if sh.AlternativeText <> "Don't delete me" then sh.Delete
        
    next
    This way, it would not matter where on the sheet the shapes are that you don't want to delete.
    Last edited by PatOBrien198; Nov 22nd, 2017 at 12:40 PM.

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com