Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Peter, Can't get it to work..I'm missing something basic, I'm sure The master reset commandbutton is in the worksheet I have the following code in the worksheet Sub CommandButton37_Click() Dim uf As UserForm Dim u As Long For Each uf In UserForms UserForms(u).Reset_Click u = u + 1 Next End Sub In each userform the reset code is similar to: Sub Reset_Click() txtStaff.Text = "" txtSalary.Value = "" cbSalInc.Value = False txtSavings.Value = 0 txtLife.Value = 0 txtComment.Value = "" End sub Cheers Peter (new to VBA) -- peter.thompson ------------------------------------------------------------------------ peter.thompson's Profile: http://www.excelforum.com/member.php...o&userid=29686 View this thread: http://www.excelforum.com/showthread...hreadid=498898 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reset button code for Radio Buttons | Excel Discussion (Misc queries) | |||
Code to Move Several Lines to Master Worksheet | Excel Discussion (Misc queries) | |||
Code Halt - prevents reset of the AutomationSecurity level | Excel Programming | |||
Reset Used Range, Debra Dalgliesh's code | Excel Programming | |||
How do I reset the LastUsed cell reference from code. | Excel Programming |