Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default vba to select all autoshapes on a sheet

Hi guys,

is there a way to select all the autoshapes on a sheet in vba? At the
minute I'm looping an iterator and concatenating onto the word
"autoshape", deleting "autoshape 1", "autoshape 2", "autoshape 3"...

this is horribly inefficient and besides, stops working when a shape
has a name like "oval 5760"! I want to select all the shapes, and
delete them all in one go...


Many thanks

Chris

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default vba to select all autoshapes on a sheet

ActiveSheet.Shapes.SelectAll


schreef in bericht
ups.com...
Hi guys,

is there a way to select all the autoshapes on a sheet in vba? At the
minute I'm looping an iterator and concatenating onto the word
"autoshape", deleting "autoshape 1", "autoshape 2", "autoshape 3"...

this is horribly inefficient and besides, stops working when a shape
has a name like "oval 5760"! I want to select all the shapes, and
delete them all in one go...


Many thanks

Chris



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default vba to select all autoshapes on a sheet

d'oh... that's really simple!

Thanks Moon


moon wrote:
ActiveSheet.Shapes.SelectAll


schreef in bericht
ups.com...
Hi guys,

is there a way to select all the autoshapes on a sheet in vba? At the
minute I'm looping an iterator and concatenating onto the word
"autoshape", deleting "autoshape 1", "autoshape 2", "autoshape 3"...

this is horribly inefficient and besides, stops working when a shape
has a name like "oval 5760"! I want to select all the shapes, and
delete them all in one go...


Many thanks

Chris


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
cannot select options in AutoShapes in Excell Scott Excel Discussion (Misc queries) 1 March 3rd 07 02:35 AM
Can I select and Group Autoshapes in Excel 97 ? diglas1 via OfficeKB.com New Users to Excel 17 June 13th 06 02:42 AM
How do I select price from sheet.b where sheet.a part no = sheet.b Sonny Excel Worksheet Functions 4 April 4th 06 05:08 PM
Cant visible autoshapes(Circles, Rect) in sheet and also in print kumar Excel Discussion (Misc queries) 1 October 12th 05 12:07 PM
Select Sheet then Select Range Gee[_2_] Excel Programming 3 May 27th 04 10:10 PM


All times are GMT +1. The time now is 03:57 PM.

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"