Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using Office 2003 on Windows XP.
I have several controls on a spreadsheet (non-ActiveX controls) and I want to add these objects to a collection. How do I do this? What I have so far follows, but ofcourse generates an error: Dim colObject As New Collection Dim vItem As Variant Dim oItems As Controls Dim lX As Long Set oItems = ActiveSheet.Controls For Each vItem In oItems lX = lX + 1 colObject.Add vItem, lX Next Could someone please correct my code or supply example code on how to do this? Thanks much in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i create a data collection form in excel? | New Users to Excel | |||
Event procedures for controls added with Controls.Add | Excel Programming | |||
How to create controls at runtime | Excel Programming | |||
Create controls dynamically | Excel Programming | |||
Function to create a collection | Excel Programming |