>>I said to use a tmp variable - not a tmp class
>
>Well, in order to copy something into something, both entities have to be the same definition. In my case, oProcess.oApp.Tables is a NameObjectCollectionBase class and this is what I need to copy. For some kind of reason .NET does not want to allow me to do that. I have made a perfect copy but only changed the name. That did not work. I also copied the entire structure and assigned new names. This also did not work.
>
(1) I think you need to change App.oApp.Tables - if memory serves
(2) For some kind of reason .NET does not want to allow me to do that
I have made a perfect copy but only changed the name
You need to replace the App.oApp.Tables p[roperty with a new instance, ie the same class but another instance
Gregory