Parent Properties in Custom Classes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to code parent properties for classes, so I can get properties that
are part of those parent classes. Anyone have an example of how this is coded
for, say, 2 custom classes where one is a collection object of the other?
Thanks.
 
You may want to look at the watch window to see which classes are applicable
to your objects.

I usually add a line of test code

Set Myobject = sheets("sheet1").shapes("MyShape") or equivalent
Put a break point after the line above. Then add Myobject to the watch
window in VBA. Myobject will have a parent which will show you all the
classes in the parent.

To read or writte classes it would be Myobject.parent..........
 

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

Back
Top