Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I am trying to empty a collection and am receiving an error message: Run-time error '424': Object Required Sub CollectionEmptyTry() Dim Obj As String Obj = Range("P17").Value If Cells(1, 1) < "" Then CheckEmpty.Add Obj End If If CheckEmpty.Count 20Then Set CheckEmpty = Empty End If MsgBox CheckEmpty.Count End Sub Any help with this error would be greatly appreciated. Also any suggestions on different ways to empty a collection? Is there any way to remove more than 1 item with the Remove Method? CheckEmpty.Remove (1 to CheckEmpty.count) ??? Thanks, pace |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
emptying the contets of a cell base on the value of another cell | Excel Worksheet Functions | |||
Collection Key | Excel Programming | |||
Emptying cache or "history" before opening workbook | Excel Programming | |||
Emptying cells containing a single blank | Excel Programming | |||
Emptying the copy buffer | Excel Programming |