Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
loop through controls
Hi Julie
try this Private Sub cmdChange_Click() Dim ctrl As Control For Each ctrl In Me.Controls Select Case ctrl.Enabled Case True ctrl.Enabled = False ctrl.Locked = True Case False ctrl.Enabled = True ctrl.Locked = False End Select Next With Me.cmdChange 'stops the button from being affected .Enabled = True .Locked = False End With End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find loop doesn't loop | Excel Discussion (Misc queries) | |||
using gui controls | Excel Discussion (Misc queries) | |||
ActiveX Controls vs Form Controls | Excel Discussion (Misc queries) | |||
Worksheet_Change - loop within a loop | Excel Programming | |||
HELP!!!! Can't stop a loop (NOT an infinite loop) | Excel Programming |