Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Triggering a macro to run by changing a radio button

I know how to run a macro automatically when changing a specific cell in
Excel, but I don't know how to program a macro to run by changing a radio
button. The code below is how I trigger the macro from a specific cell, but
it doesn't seem to work when applying it to the radio button. Can someone
help?


If Target.Address = "$C$12" And Range("$E$345") = True Then
Range("$C$13").Activate
Application.Run "Show_Rates"

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Triggering a macro to run by changing a radio button

In the UserForm's code module:

Private Sub OptionButton1_Click()
Application.Run "Show_Rates"
End Sub

Hth,
Merjet

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Triggering a macro to run by changing a radio button

Disregard this help request. I figured out by assigning a macro to each of
the radio buttons, I can accomplish what I need to do. Thanks.

"Modell" wrote:

I know how to run a macro automatically when changing a specific cell in
Excel, but I don't know how to program a macro to run by changing a radio
button. The code below is how I trigger the macro from a specific cell, but
it doesn't seem to work when applying it to the radio button. Can someone
help?


If Target.Address = "$C$12" And Range("$E$345") = True Then
Range("$C$13").Activate
Application.Run "Show_Rates"

Thanks.

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
Radio Button Macro Lisa C. Excel Discussion (Misc queries) 4 March 27th 09 12:33 PM
Radio Button Macro Lisa C. Excel Discussion (Misc queries) 3 March 26th 09 03:02 AM
radio button help tjb Excel Worksheet Functions 1 September 27th 05 01:16 AM
How do I lock a radio button group if a N/A button is selected worry a lot Excel Discussion (Misc queries) 2 May 21st 05 08:33 PM
VBA: Disable Frame and Radio Buttons based on Another Radio Button Being True Mcasteel Excel Worksheet Functions 2 October 29th 04 07:06 PM


All times are GMT +1. The time now is 07:40 PM.

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"