ambigous name

dantb

Active Member
Joined
Mar 20, 2002
Messages
358
First time trying to write a frame with option buttons, keep getting error ambigous name. What I have is
Private Sub optSize_Click(Index As Integer)

This is the first line of all 3 click buttons. New at this,I cant figure out what is wrong. Thx Dan
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Ok Im sure real simple but Im missing the picture. I have a form that contains 3 different frames. Frame 1, has 3 text boxes with 3 click buttons, where you have to make a choice. And basicaly the other two frames are the same with different amouts of text boxs. Will it take (on frame 1) 3 different/seperat codes, 1 code per option? or is one enough ?. Thanks for your time Dan
 
Upvote 0
Thank All for the Help, think I finaly got it. Thx again.

Option Explicit
Dim Optsize(3) As Integer
Dim PizzaSize As String
Dim PizzaCrust As String
Dim PizzaWhere As String

Private Sub Optsize_Click(Index As Integer)
'Read pizza size
PizzaSize = optSize0(0).Caption
End Sub



Private Sub Optsize_Click1(Index As Integer)
'Read pizza size
PizzaSize = Optsize1(1).Caption
End Sub

Private Sub Optsize2_Click2(Index As Integer)
'Read pizza size
PizzaSize = Optsize1(2).Caption
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,217
Members
448,876
Latest member
Solitario

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top