0

I'd like my macro to grab the string selected in my userform.

My UserForm has the following simple Code for each radial button:

Private Sub CountryBtn_Click()
CompanySelectFrm.Hide
Dim StrBrand As String
StrBrand = "String 1"
End Sub


Sub MacroTest()
Dim StrBrand As String
StrBrand = CompanySelectFrm. '??
End Sub

I'd like my macro to grab the value of StrBrand so I can use it in a file path but I'm not sure of the correct synatx for this. I'm not as familiar with Userforms. I know I could just put the macro in each of the button subs but I'd rather have one macro and grab the string from the userform instead. Any help or push in the right direction would be appreciated.

-D

0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.