>You could declare your variable as
>
> Dim MyProperty as MyServer.MyFormClass
>
>And you could direcly instiance your object by using :
> Dim MyProperty as new MyFormClass
>Or
> Dim MyProperty as new MyServer.MyFormClass
I can now execute the dim line. However, the set line returns "Invalid use of New keyword".
Dim MyProperty As fournier.maforme
Set MyProperty = New fournier.maforme