hi gurus,
I have this option button selection disappearing issue here. I hope to get some help here. I'll try my best to explain.
I have a macro that copy and rename a worksheet template (hidden) everytime the user click on a "+" button. the template contains option buttons for user to make select. the option buttions is named "OptionButton1".... "OptionButton4"..
I also notice this issue only happens when there are more than 1 copied template. I suspect is the way i code the macro. but then again I already declare the worksheet the macro should be working on.
I'm stuck and unsure where is wrong.
I have this option button selection disappearing issue here. I hope to get some help here. I'll try my best to explain.
I have a macro that copy and rename a worksheet template (hidden) everytime the user click on a "+" button. the template contains option buttons for user to make select. the option buttions is named "OptionButton1".... "OptionButton4"..
I also notice this issue only happens when there are more than 1 copied template. I suspect is the way i code the macro. but then again I already declare the worksheet the macro should be working on.
Code:
For Each obj In ws.OLEObjects
If TypeName(obj.Object) = "OptionButton" Then
If obj.Name <> "OptionButton3" Then
ws.OLEObjects(obj.Name).Object = False
End If
End If
Next obj
I'm stuck and unsure where is wrong.