Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Delete all Shapes from selected Range

Try code like the following:

Dim Rng As Range
Dim SH As Shape
Dim TLC As Range
Set Rng = Range("F4:AJ23")
For Each SH In ActiveSheet.Shapes
If Not Application.Intersect(Rng, SH.TopLeftCell) Is Nothing Then
SH.Delete
End If
Next SH



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)



"CLR" wrote in message
...
Hi All..........
I need help please for the code to delete all Shapes, Images,
DrawingObjects, whatever, from a selected range of F4:AJ23.....I only seem
to
be able to get rid of them by individual name. I want everything out of
there.

TIA
Vaya con Dios,
Chuck, CABGx3




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
delete row and 3 rows below by range selected Corey Excel Programming 2 November 28th 06 08:14 AM
Delete selected range RW Excel Programming 2 December 12th 05 12:55 PM
Delete a selected area from a non-contiguous range Paul Martin Excel Programming 3 September 11th 05 01:31 AM
trying to delete selected range with macro DKY[_74_] Excel Programming 7 August 27th 05 01:58 PM
delete every nth row in selected range cwinters Excel Discussion (Misc queries) 1 July 6th 05 08:17 PM


All times are GMT +1. The time now is 12:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"