Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Im trying to learn how to use collections
for this example i've but 4 digit numbers in the cells C2:F2. at this point i just want to get the data into a collection and the look at the items individually in a msg box here is my code thus far. Sub collection() Dim COL1 As New collection Dim FRST Dim SCND Dim THRD Dim FRTH Range("c2:F2").Select For Each cell In Selection COL1.Add (cell.Value) Next cell FRST = COL1.Item(1).Value MsgBox (FRST) End Sub help i just don't get i -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Clearing Collections | Excel Programming | |||
Using Collections | Excel Programming | |||
Collections Lookups | Excel Programming | |||
Comparing Collections | Excel Programming | |||
Creating Collections 'on the fly' | Excel Programming |