ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   vba to select all autoshapes on a sheet (https://www.excelbanter.com/excel-programming/373804-vba-select-all-autoshapes-sheet.html)

[email protected]

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


moon[_7_]

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




[email protected]

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




All times are GMT +1. The time now is 02:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com