VBA use value of option button to change dropdown selection

LL1300

New Member
Joined
May 10, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I have an option button, that when checked off will cause a dropdown form to select the option for 0. The cell links are on another sheet in the workbook.

My option button cell link when checked will say TRUE, and the dropdown would say 0.

I'm new to macros, so any help would be appreciated. Here's what I have so far:

Sub Escrow_Button()
Worksheets("Data").Activate
If Range("AA1").Value = True Then
Range("U1").Value = 0
End If
End Sub

Please let me know if this is possible.

Thanks so much!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
More detail about your worbook. What sheet is the option button on? What sheet do you want to affect with the option button? Is the dropdown a Data Validation selection list? What cell is it associated with? What are the other options on the dropdown? Is the code you show above working? More questions possible but start with these.
 
Upvote 0
Hey! Thanks for answering.

Not sure how but it somehow decided to work.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top