Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I remove a non-toolbar custom button from a sheet?

I created a custom button that I assigned to a macro and placed it into a
worksheet. Now I want to delete that button, but I cannot find anyway to
delete it. Does anyone know how to select the button and delete it?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do I remove a non-toolbar custom button from a sheet?

Sub DeleteAllShapes()
for each shp in ActiveSheet.Shapes
shp.Delete
Next
End sub

--
Regards,
Tom Ogilvy

"AaronInCarolina" wrote in
message ...
I created a custom button that I assigned to a macro and placed it into a
worksheet. Now I want to delete that button, but I cannot find anyway to
delete it. Does anyone know how to select the button and delete it?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do I remove a non-toolbar custom button from a sheet?

remove any autofilter you might have in effect before running the macro.

--
Regards,
Tom Ogilvy


"AaronInCarolina" wrote in
message ...
I created a custom button that I assigned to a macro and placed it into a
worksheet. Now I want to delete that button, but I cannot find anyway to
delete it. Does anyone know how to select the button and delete it?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default How do I remove a non-toolbar custom button from a sheet?

Hi

Also DataValidation arrows

Sub Shapes3()
'Loop through the Shapes collection and use the Type number of the control
'Example only for the Forms controls
Dim myshape As Shape
For Each myshape In ActiveSheet.Shapes
If myshape.Type = 8 And myshape.FormControlType < 2 Then myshape.Delete
Next myshape
ActiveSheet.DropDowns.Delete
End Sub

I have more info here about that
http://www.rondebruin.nl/controlsobjectsworksheet.htm



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Tom Ogilvy" wrote in message ...
remove any autofilter you might have in effect before running the macro.

--
Regards,
Tom Ogilvy


"AaronInCarolina" wrote in
message ...
I created a custom button that I assigned to a macro and placed it into a
worksheet. Now I want to delete that button, but I cannot find anyway to
delete it. Does anyone know how to select the button and delete it?





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
How to remove customized button from toolbar? Eric Excel Discussion (Misc queries) 1 August 6th 09 05:44 AM
How to remove unwanted custom toolbar laura_in_abq Excel Discussion (Misc queries) 3 January 7th 08 09:55 PM
Custom toolbar button icons leaftye - ExcelForums.com Excel Discussion (Misc queries) 2 July 7th 05 06:09 PM
Delete a custom button by holding down the ALT key and dragging the button off the toolbar Stephen[_8_] Excel Programming 0 April 4th 04 02:22 PM
Remove Save Button from toolbar Tommy T Excel Programming 1 December 23rd 03 11:17 PM


All times are GMT +1. The time now is 04:08 PM.

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"