PDA

Click to See Complete Forum and Search --> : Inherited objects on Exel


klaussf
Sep 30th, 2005, 01:18 AM
Can I inherite an object from Excel like "Rectangle" in order to add it properties like input1 as integer, output1 as integer, ... inputn as integer etc.?

khurram jafri
Sep 30th, 2005, 02:07 AM
why you are not using vb this have more then function you want.

klaussf
Sep 30th, 2005, 07:28 AM
Ok! It's not important if I use Excel's object (like "Rectangle") or VBA created one. The point is how can I create an inherited object and draw it on a sheet? Further a double-click on that objects must give infomations about their properties (inputs and outputs).

RobDog888
Oct 1st, 2005, 11:34 AM
What version of Office are you running and are you wanting to do this in VBA or VB6/.NET?

klaussf
Oct 5th, 2005, 12:18 AM
I use VBA 6.3 on Excel 2002

RobDog888
Oct 5th, 2005, 12:20 AM
Looking at your input and output properties you want, if your not wanting to amke it a control for adding to your toolbox or something then you can just create a rectangle in a class and add some properties to it.

klaussf
Oct 11th, 2005, 12:20 AM
Thanke you! But can you give me an example? It's easier to understand.