Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-01-2020, 08:07 PM
Cendrinne's Avatar
Cendrinne Cendrinne is offline Help with Shape Deletion on Selection only Windows 10 Help with Shape Deletion on Selection only Office 2019
Competent Performer
Help with Shape Deletion on Selection only
 
Join Date: Aug 2019
Location: Montreal Quebec Canada
Posts: 200
Cendrinne is on a distinguished road
Default Help with Shape Deletion on Selection only


Hello Pros,
I need your help again.

Been trying to rack my brain and been trying over and over again, to Delete Shapes from a document, BUT only upon Selection. NOT from the whole document.

Code:
Sub Graph_TEST_LINES_FORME_Supp_On_Select()

ActiveDocument.Select
 For i = ActiveDocument.Shapes.Count To 1 Step -1
    
    ActiveDocument.Shapes(i).Delete
 Next i

End Sub
Is there a way?

Thanks for any insights you may provide

Cendrinne

Last edited by Cendrinne; 12-01-2020 at 10:35 PM.
Reply With Quote
 

Tags
delete shape on selection



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shape Data - Using Fixed List selection in another cell's formula natelfo Visio 1 04-22-2019 01:20 PM
How to change size / shape of a shape in a stencil tomgoodell Visio 1 06-30-2016 04:40 AM
Help with Shape Deletion on Selection only Draw a selection box over a shape omberlo PowerPoint 1 11-25-2012 06:44 AM
Tip on File Deletion zyzzyva57 Office 0 01-30-2010 05:33 AM
IMAP Deletion MaxRabbit Outlook 6 10-20-2008 06:33 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft