Is what I'm trying to do above inheritance
MattShoreson - 21 Mar 2006 14:33 GMT
Matt,
Create a new class module named CPath and insert the following
code:
Public Function Compile()
Debug.Print "Compile"
End Function
Then in your CReturnExcelADO class, put the following code:
Public Path As CPath
Private Sub Class_Initialize()
Set Path = New CPath
End Sub
Now you can call the comile method as
Dim clsReturnExcelADO As CReturnADO
Set clsReturnExcelADO = New CReturnADO
clsReturnExcelADO.Path.compile
Strucutring you code this way is a very simple object model.

Signature
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
"MattShoreson"
>
> Hi,
[quoted text clipped - 14 lines]
>
> i.e. clsReturnExcelADO.Path.compile
MattShoreson - 21 Mar 2006 16:43 GMT
Thanks Chip.
Do you know of any resource/book which explains this in more detail
specifically make methods and properties accessible to parent classe
etc.
thx matt
John - 22 Mar 2006 11:34 GMT
Matt,
Take a look at Chip's "Class Module" page on his site:
http://www.cpearson.com/excel/ClassModules.htm
Best regards
John
> Thanks Chip.
>
[quoted text clipped - 3 lines]
>
> thx matt.