Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Drawn Object Woes


Hi!
Is there a way to know how many drawn objects there are in
spreadsheet?
Can I select multiple drawn objects and delete them in VBA?
Thanks

--
Brian Matlac
-----------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...nfo&userid=350
View this thread: http://www.excelforum.com/showthread.php?threadid=50171

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Drawn Object Woes

You can get the number of shapes using
.shapes.count
or
.drawingobjects.count

To delete all drawing objects use
sheetname.drawingobjects.delete

or loop through and just delete specific ones (in case you have buttons etc
you wish to keep).

Tim

--
Tim Williams
Palo Alto, CA


"Brian Matlack"
wrote in message
news:Brian.Matlack.21qm2m_1137431403.3037@excelfor um-nospam.com...

Hi!
Is there a way to know how many drawn objects there are in a
spreadsheet?
Can I select multiple drawn objects and delete them in VBA?
Thanks!


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile:

http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=501711



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Drawn Object Woes


Thanks Tim!! You saved me alot of time.


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=501711

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
Using Macros to manipulate drawn objects Elliot Excel Discussion (Misc queries) 0 May 24th 07 03:13 PM
Finding the column which a value was drawn from skier464 Excel Discussion (Misc queries) 5 September 10th 06 03:11 AM
How to remove a drawn chart object using VBA. Raas Excel Programming 3 November 22nd 05 04:04 PM
office xp excel drawn line gone BIGJ Charts and Charting in Excel 0 April 18th 05 08:21 PM
Prevent User from Deleting Drawn Object Tod Excel Programming 4 July 23rd 04 09:59 AM


All times are GMT +1. The time now is 05:35 AM.

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

About Us

"It's about Microsoft Excel"