LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Collection Problems

I am trying to add objects to a collection. The objects are type PolyPoint
(class). I am getting an error in the StorePoint line that Object doesn't
support this property or method.


Sub PanelMaker()

Dim areaNum As Long

areaNum = Sheets("Chart Plot Data").Range("a" & Cells(Rows.Count,
1).End(xlUp).Row).End(xlUp).Row

For sect = 1 To areaNum

For Each Cell In Sheets("Charts").Range("A1:A" & Cells(Rows.Count,
1).End(xlUp).Row)
Set newP = New PolyPoint
With newP
.PointKey = Cell.Row
.x = Cell.Value
.y = Cell.Offset(0, 1).Value
End With
StorePoint (newP)

Next

Next sect

End Sub

 
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
Problems returning Collection object McManCSU[_23_] Excel Programming 4 August 9th 05 07:02 PM
Collection Todd Huttenstine Excel Programming 4 December 17th 04 09:41 PM
Collection Class problems Flemming Dahl Excel Programming 4 February 11th 04 04:41 PM
2 Collection questions Stuart[_5_] Excel Programming 5 January 30th 04 04:50 PM
Is a Collection the best option? Stuart[_5_] Excel Programming 5 August 31st 03 09:51 PM


All times are GMT +1. The time now is 07:48 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"