Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Object or class does not support the set of events

Status
Not open for further replies.

rdavis

Programmer
Apr 29, 2002
157
US
I know you can not declare an object WithEvents as an array. But why can't I set an object = to another object that in is an array.

Eg.

Dim Object WithEvents as RichTextBox

Set Object = RichTextBox (index)

I get the above error? Am I not allowed to do this? If I make RichTextBox1 a single object (not an array) it works fine.

Thanks in Advance


Rob
 
Not tried this but do you need to put .object on the end of you line.

Set Object = RichTextBox(index).Object
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top