Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default A List of Collections and Custom Collections

1) Where can I find a list of all the object collections in VBA?
2) What function/property returns an objects Collection (i.e. fnc(worksheet)
= Worksheets
3) Is it possible to create custom collections? How do you do this?

Thanks

EM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default A List of Collections and Custom Collections

Hi,

1)Since each library has its own set of objects, properties, ...
collections, it depends on libraries your are using in each project.
Now, you can search the online help for 'Excel Object Model' and you'll
find an interesting map of all objects and collections (based on coloring) in
Excel, as well as some 'hierarchy/dependency' between them.
2) ... too extensive but the Object Browser is a place to start. (key F2 or
menu View Object Browser.
3) DIm MyCol as Collection
Set MyCol = New Collection
''' Collections have 4 sub/functions: Add, COunt, Item , Remove
and look in the online help for examples

On top of that, you can wrap a Collection in a class to make it strongly
types and better control it, like Worksheets which has an Add and COunt like
in COllection, but implements many more subs/functions.
Search the web for 'vba "Collection Class" ' or ' vb6 "Collection Class" '

--
Regards,
Sébastien
<http://www.ondemandanalysis.com
<http://www.ready-reports.com


"ExcelMonkey" wrote:

1) Where can I find a list of all the object collections in VBA?
2) What function/property returns an objects Collection (i.e. fnc(worksheet)
= Worksheets
3) Is it possible to create custom collections? How do you do this?

Thanks

EM

Reply
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
Nesting Collections [email protected] Excel Programming 2 November 8th 07 06:30 PM
For Each and Collections Memento Excel Programming 6 June 4th 07 02:57 PM
Collections of Collections David Morton Excel Programming 6 November 13th 04 01:10 AM
Help with collections ksnapp[_45_] Excel Programming 1 April 7th 04 12:42 AM
Using Collections Kerry[_4_] Excel Programming 1 January 25th 04 04:08 PM


All times are GMT +1. The time now is 11:56 AM.

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

About Us

"It's about Microsoft Excel"