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

I was wondering if it was possible to change the macro assigned to
button by linking it to the cell link value of an option button. Fo
instance if the user chose "yes" macro 1 will be assigned to a button
If they chose "No" macro 2 will be assigned to the button

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default dynamic buttons

No (=not in a simple, safe way worth considering, almost everything is possible).

Let the button macro consider what the user has selected and call the proper macro.

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Noctos " wrote in message
...
I was wondering if it was possible to change the macro assigned to a
button by linking it to the cell link value of an option button. For
instance if the user chose "yes" macro 1 will be assigned to a button.
If they chose "No" macro 2 will be assigned to the button.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default dynamic buttons

Hi Noctos,

Yes it is. This assigns MacroB to a button

ActiveSheet.Shapes("Button 1").OnAction = "MacroB"



--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Noctos " wrote in message
...
I was wondering if it was possible to change the macro assigned to a
button by linking it to the cell link value of an option button. For
instance if the user chose "yes" macro 1 will be assigned to a button.
If they chose "No" macro 2 will be assigned to the button.


---
Message posted from http://www.ExcelForum.com/



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
Option Buttons/Radio Buttons John Calder New Users to Excel 7 May 16th 08 03:51 AM
Form buttons vs. ActiveX Buttons GeorgeJ Excel Discussion (Misc queries) 3 August 11th 07 09:02 PM
createing a dynamic array of buttons with captions loaded from she ouch Excel Discussion (Misc queries) 3 June 5th 07 03:27 AM
have toggle buttons but everytime print preview buttons move TinSandhu Excel Discussion (Misc queries) 1 October 11th 06 02:57 PM
Control Buttons vs. Command Buttons Robert Gibson Excel Programming 1 October 13th 03 04:33 PM


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