Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I create a sheet , add some controls at the cells,
Sample: at cell(10,1), add a optionbutton, when click the button, I will write some text at cell(10,3)...... I can get the controls' x/y-ray, but the 1-9 row height are not same, so cant calculate the row number by the way. Pls help me, thank you. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Cyberarmao,
Is this a control from the Forms toolbar? Try: '============= Public Sub Tester() Dim OpTopLeft As String OpTopLeft = ActiveSheet.OptionButtons _ ("Option Button 2").TopLeftCell.Address(0, 0) MsgBox OpTopLeft End Sub '<<============= --- Regards, Norman "cyberarmao" wrote in message ... I create a sheet , add some controls at the cells, Sample: at cell(10,1), add a optionbutton, when click the button, I will write some text at cell(10,3)...... I can get the controls' x/y-ray, but the 1-9 row height are not same, so cant calculate the row number by the way. Pls help me, thank you. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "cyberarmao" wrote: I create a sheet , add some controls at the cells, Sample: at cell(10,1), add a optionbutton, when click the button, I will write some text at cell(10,3)...... I can get the controls' x/y-ray, but the 1-9 row height are not same, so cant calculate the row number by the way. Pls help me, thank you. my code is : Private Sub OptionButton2_Click() If OptionButton2.Value = True Then Worksheets("Test").Range("F8").Value = "No Title" End Sub I want to calculate the row number of OptionButton2. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I random sample from a set until every sample is selected? | Excel Discussion (Misc queries) | |||
How to sort column when cells contain both text & number (Sample X | Excel Worksheet Functions | |||
how can I sample a number from a distribution? | Excel Discussion (Misc queries) | |||
How does one change the sample number. Instead of zero my workshe. | Excel Discussion (Misc queries) | |||
How can I find a handle number of controls on Userform? | Excel Programming |