Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Deleting selected macro buttons


Hello everyone

Is there an easy way of deleting the macro click buttons by the name
you have assigned them and not by it's automatic button number? It is
getting difficult to keep track of the number of buttons and when the
sheet is copied the button numbering changes on the copied sheet.

is there a way of using the button command eg.

ActiveSheet.Buttons.???

Any help would be appreciated

Thanks

Rabbi


--
rabbi
------------------------------------------------------------------------
rabbi's Profile: http://www.excelforum.com/member.php...o&userid=20178
View this thread: http://www.excelforum.com/showthread...hreadid=396728

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Deleting selected macro buttons

Hi Rabbi,

Try something like:

ActiveSheet.Buttons("MyButton1").Delete


---
Regards,
Norman



"rabbi" wrote in
message ...

Hello everyone

Is there an easy way of deleting the macro click buttons by the name
you have assigned them and not by it's automatic button number? It is
getting difficult to keep track of the number of buttons and when the
sheet is copied the button numbering changes on the copied sheet.

is there a way of using the button command eg.

ActiveSheet.Buttons.???

Any help would be appreciated

Thanks

Rabbi


--
rabbi
------------------------------------------------------------------------
rabbi's Profile:
http://www.excelforum.com/member.php...o&userid=20178
View this thread: http://www.excelforum.com/showthread...hreadid=396728



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
Forms Option Buttons(Can be right mouse selected when sheet is loc Newbeetle Excel Discussion (Misc queries) 2 February 10th 07 04:12 PM
deleting selected rows Worker Bee Excel Discussion (Misc queries) 5 November 20th 06 01:37 PM
Deleting multiple Macro buttons Ant Excel Discussion (Misc queries) 3 June 13th 06 02:34 AM
Deleting option buttons jzemanek Excel Discussion (Misc queries) 2 August 20th 05 12:04 AM
Deleting all buttons in a collection Ken Loomis Excel Programming 5 July 3rd 05 12:04 AM


All times are GMT +1. The time now is 11:30 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"