Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referencing Excel 2000 ActiveX controls 1

Status
Not open for further replies.

scottrod

Technical User
May 24, 2001
21
US
I have a worksheet I'm testing controls with. I can place controls in the worksheet and run code off them but now I want to try something else. I've placed a Microsoft Forms 2.0 Frame on a worksheet. I then added two option buttons to the frame. How do I refer to those option buttons within code? The option buttons that are added are ActiveSheet.OptionButtons so I haven't figured out how to get 'down' to the button. They are embeded in the frame while the frame is embeded in the worksheet. As far as syntax, I have Sheet1.Frame1 but don't know what should go next.
 
Figured it out:

Sub test()
ActiveSheet.OLEObjects("Frame1").Object.OptScott.Value = 1
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top