Hi Guys!
This one should be easy, but I'm just going round in circles trying to fix a simple problem.
I have a Form, on which is a Frame within which are four radio buttons with their associated texts.
When the Form is Initialised, I'd like the second radio button to be set.
Using the following code (where optCreate is the name of the second radio button)
The second button is selected, but there is a border around the text of the first radio button!
I'd like the border to be around the second radio button, as it would be if I'd selected it "manually", so I tried the following code
This has the curious effect (at least it's curious to me) of removing the border from all of the radio buttons.
How do I get the border around radio button 2 using VBA?
All help or hints gratefully received....
This one should be easy, but I'm just going round in circles trying to fix a simple problem.
I have a Form, on which is a Frame within which are four radio buttons with their associated texts.
When the Form is Initialised, I'd like the second radio button to be set.
Using the following code (where optCreate is the name of the second radio button)
Code:
Private Sub UserForm_Initialize()
Me.optCreate = True
End Sub
I'd like the border to be around the second radio button, as it would be if I'd selected it "manually", so I tried the following code
Code:
Private Sub UserForm_Initialize()
Me.optCreate = True
Me.optCreate.SetFocus
End Sub
This has the curious effect (at least it's curious to me) of removing the border from all of the radio buttons.
How do I get the border around radio button 2 using VBA?
All help or hints gratefully received....