raghavanhr
New Member
- Joined
- Aug 29, 2018
- Messages
- 5
Hi Experts,
I have a workbook with a User Form with two radio buttons (a,b), an 'OK' Command Button and a 'Cancel Command' Button.
On Sheet1("Form") I have a command button that loads the User Form.
I also have a module in VBA, where I would like to write a subroutine (called by Clicking the OK button on my User Form) that contains the value of the selected radio button. This should take a value from my User Form depending upon which of the two Radio Buttons clicked by the user, Company provided Ticket for Radio button 1 and Self Ticket for Radio BUtton 2, return this to the value to a cell address.
I am struggling to figure out how to pass and receive values between the radio button selected and would really appreciate some advice!
Thank you for reading,
I have a workbook with a User Form with two radio buttons (a,b), an 'OK' Command Button and a 'Cancel Command' Button.
On Sheet1("Form") I have a command button that loads the User Form.
I also have a module in VBA, where I would like to write a subroutine (called by Clicking the OK button on my User Form) that contains the value of the selected radio button. This should take a value from my User Form depending upon which of the two Radio Buttons clicked by the user, Company provided Ticket for Radio button 1 and Self Ticket for Radio BUtton 2, return this to the value to a cell address.
I am struggling to figure out how to pass and receive values between the radio button selected and would really appreciate some advice!
Thank you for reading,