Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Can someone tell me how to cycle through all the controls in a worksheet? I tried this: Code: -------------------- Private Sub CommandButton1_Click() Dim ctrl As Control Dim blad As Worksheet For Each blad In ActiveWorkbook.Worksheets Debug.Print blad.Name For Each ctrl In Controls Debug.Print ctrl.Name Next ctrl Next blad End Sub -------------------- But this resulted in an "object required" error. Apparently the worksheet object does not have a controls collection. -- DeeJay ------------------------------------------------------------------------ DeeJay's Profile: http://www.excelforum.com/member.php...fo&userid=5420 View this thread: http://www.excelforum.com/showthread...hreadid=397561 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Controls in a Worksheet | Excel Programming | |||
Controls on worksheet | Excel Programming | |||
controls on worksheet | Excel Programming | |||
Worksheet Controls | Excel Programming | |||
Referencing to controls on a worksheet | Excel Programming |