Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I am trying to clear out all checkboxes, textboxes and listboxes with a
"cancel" button. With the help of this forum, I have the code below which works great except for a couple of listboxes that have checkboxes (1- fmliststyleoption). These two listboxes do not clear when I click on the cancel button. Can someone please help me with this? Thank you. Dim cCont As Control If MsgBox("Do you really want to cancel?", vbYesNo, "Cancel Action") = vbYes Then For Each cCont In Me.Controls If TypeName(cCont) = "CheckBox" Then cCont.Value = False End If If TypeName(cCont) = "TextBox" Then cCont.Value = "" End If If TypeName(cCont) = "Listbox" Then cCont.Value = "" End If Next cCont End If Me.txtFormDate = Format(Date, "mm/dd/yyyy") Exit Sub End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
listbox in excel that is an option for sql query | Excel Discussion (Misc queries) | |||
double click option in listbox outputs to cell in excel 97 ! | Excel Programming | |||
using check box option, how do I add or substract | Excel Programming | |||
Check/option | Excel Programming | |||
listbox option in form | Excel Programming |