LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Help with Emptying a Collection

I didn't see your reply (well, until after I scrolled down).

Tom Ogilvy wrote:

A discussion saying not to DIM as New is found at Chip Pearson's site:

http://www.cpearson.com/excel/variables.htm

it is a little short of 2/3rds down the page:

section title is:
"Don't Use The New Keyword In A Dim Statement"

--
Regards,
Tom Ogilvy

"pacer1" wrote:

Dave your:

If CheckEmpty.Count 20 Then
Set CheckEmpty = New Collection
End If

does exactally what I am looking for. Thanks.

One other quick question. You used:

Option Explicit
Sub CollectionEmptyTry()
Dim CheckEmpty As Collection


Set CheckEmpty = New Collection

Is there any preference over just using:

Option Explicit
Dim CheckEmpty as New Collection

Thanks,

Pace



--

Dave Peterson
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
emptying the contets of a cell base on the value of another cell tracktor Excel Worksheet Functions 3 May 17th 08 06:27 AM
Collection Key gabch[_8_] Excel Programming 4 March 20th 06 04:40 PM
Emptying cache or "history" before opening workbook windsurferLA Excel Programming 2 February 15th 05 06:30 PM
Emptying cells containing a single blank Ken Loomis Excel Programming 1 October 7th 04 06:35 PM
Emptying the copy buffer justin Excel Programming 1 October 27th 03 03:03 PM


All times are GMT +1. The time now is 10:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"