Re: Same Contents, Regardless of Order
- From: Ron Rosenfeld <ronrosenfeld@xxxxxxxxxx>
- Date: Tue, 17 Jun 2008 09:06:14 -0400
On Tue, 17 Jun 2008 07:18:28 -0400, Ron Rosenfeld <ronrosenfeld@xxxxxxxxxx>
wrote:
I worked around this by testing to see if the argument was an object or not,
and using the Count property if it was an object, but I wonder if there is a
more efficient method.
Actually, the Extract function can be simplified:
=======================
Private Function Extract(a) As Variant
Dim i As Long
Dim temp() As Variant
If IsObject(a) Then
ReDim temp(1 To a.Count)
For i = 1 To a.Count
temp(i) = a(i)
Next i
Extract = temp
Else
Extract = a
End If
End Function
=========================
--ron
.
- References:
- Re: Same Contents, Regardless of Order
- From: Rick Rothstein \(MVP - VB\)
- Re: Same Contents, Regardless of Order
- From: Ron Rosenfeld
- Re: Same Contents, Regardless of Order
- Prev by Date: VBA Debug Mode : How to I enter it after executing the nth data row.
- Next by Date: Re: excel 2003 very unstable after copying a work***
- Previous by thread: Re: Same Contents, Regardless of Order
- Next by thread: Re: Same Contents, Regardless of Order
- Index(es):