Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to be able to run a code that will check to see if a
control has a particular name and then tell me which one has that name. I thought the code below would work but it does not do the trick. Private Sub btnSubmit_Click() Dim C As Control For Each C In Me.Controls If C.Name = "txtnum1" Then MsgBox C.Name End If Next C End Sub Additionally is there a way to use a wild card. For example show me all textboxes that start with txtNum (txtNum1, txtNum2, etc) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I add a control check box to control other checkboxes? | Excel Worksheet Functions | |||
Check Box Control | Excel Programming | |||
Control Names | Excel Programming | |||
Can I check names in one list agains names in another in excel? | Excel Discussion (Misc queries) | |||
Check box control | Excel Programming |