Rule to recall collection lower bound index ?

M

Michel S.

Hello !

In VBA, the Worksheets collection starts at Item 1.

The Controls collection starts at Item 0 (as do most collections).

Is there a "rule of thumb" for one to recall which collections start at
1 and which start at 0 ?

Does this rule stands between versions ? VBA 5 / VBA 6 / VB .Net ?

Thanks
 
J

Jim Rech

VBA (including userforms) was grafted on to Excel and is, in many ways, a
different application. I think we can say that Excel collections
(workbooks, worksheets, names, ranges, shapes...) start at 1 most of the
time, if not always.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top