Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I have userform with 2 commandbuttons (Load and Clear) and 1 Listbox. I tried using the below event to clear the listbox but i failed. Private Sub cmdClear_Click() 'clear the data Me.Result.Value = "" End Sub Hope someone knows why Thanks in advance Eli |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Please try
Result.Clear אלי wrote: Hi I have userform with 2 commandbuttons (Load and Clear) and 1 Listbox. I tried using the below event to clear the listbox but i failed. Private Sub cmdClear_Click() 'clear the data Me.Result.Value = "" End Sub Hope someone knows why Thanks in advance Eli |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
under the button click command just clear it :
ListBox1.Clear -- -John Please rate when your question is answered to help us and others know what is helpful. "אלי" wrote: Hi I have userform with 2 commandbuttons (Load and Clear) and 1 Listbox. I tried using the below event to clear the listbox but i failed. Private Sub cmdClear_Click() 'clear the data Me.Result.Value = "" End Sub Hope someone knows why Thanks in advance Eli |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for your reply.
somehow i got "run time error'-2147467259(80004005): Unspecified error" when i did it. "John Bundy" wrote: under the button click command just clear it : ListBox1.Clear -- -John Please rate when your question is answered to help us and others know what is helpful. "אלי" wrote: Hi I have userform with 2 commandbuttons (Load and Clear) and 1 Listbox. I tried using the below event to clear the listbox but i failed. Private Sub cmdClear_Click() 'clear the data Me.Result.Value = "" End Sub Hope someone knows why Thanks in advance Eli |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Clearing cells without clearing formulas | Excel Discussion (Misc queries) | |||
userform listbox cannot get listbox.value to transfer back to main sub | Excel Programming | |||
VBA: Creating listbox similar to the one in Pivot table (Listbox+Checkbox) | Excel Programming | |||
listbox.value not equal to listbox.list(listbox.listindex,0) | Excel Programming | |||
Is refreshing listbox rowsource in listbox click event possible? | Excel Programming |