PC Review


Reply
Thread Tools Rate Thread

Does Excel Support the VB List Class?

 
 
Benjamin Fortunato
Guest
Posts: n/a
 
      1st Mar 2010
I have one quick question. Does Excel support vb Lists? I wanted to add some
data to a vb list via the list.add method, but excel does not support the
format

dim Mylist as list(of double)

Does this mean I have to use the array class?

Best,

Ben

 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      1st Mar 2010
What sort of List do you have in mind

Regards,
Peter T


"Benjamin Fortunato" <(E-Mail Removed)> wrote in
message news:8CBF362B-4723-46ED-A0FA-(E-Mail Removed)...
>I have one quick question. Does Excel support vb Lists? I wanted to add
>some
> data to a vb list via the list.add method, but excel does not support the
> format
>
> dim Mylist as list(of double)
>
> Does this mean I have to use the array class?
>
> Best,
>
> Ben
>



 
Reply With Quote
 
Chip Pearson
Guest
Posts: n/a
 
      1st Mar 2010
No, VBA doesn't support of any the System.Collection.Generic classes
that you get with VBNET. You can use a regular Collection or if you
reference the Microsoft Scripting Runtime you get a Dictionary object.
Neither of these are strongly typed.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com



On Mon, 1 Mar 2010 07:25:01 -0800, Benjamin Fortunato
<(E-Mail Removed)> wrote:

>I have one quick question. Does Excel support vb Lists? I wanted to add some
>data to a vb list via the list.add method, but excel does not support the
>format
>
>dim Mylist as list(of double)
>
>Does this mean I have to use the array class?
>
>Best,
>
>Ben

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel import error - Object or class does not support set of event =?Utf-8?B?TmV2?= Microsoft Access External Data 0 11th Jun 2006 04:53 AM
iterating List<T> of a base class from derived class phl Microsoft C# .NET 2 4th May 2006 08:21 PM
Casting List<> of derived class to List<> of base class? matty.hall@gmail.com Microsoft C# .NET 4 12th Sep 2005 04:46 AM
If the base class doesn't support serialization how to serialize derived class? Julia Microsoft C# .NET 1 23rd May 2005 06:51 PM
How to raise event in a List Item class and cause an event in the custom List class moondaddy Microsoft VB .NET 3 5th Apr 2005 07:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:02 AM.