I have module with specific Type, and in another I have this

Public Data as tMyType
Public Inp as PropertyBag

I fill Data and tried this :

Data.F1 = 1
Data.F2 = "H"
..

Set Inp = New PropertyBag

Inp.WriteProperty "1", Data
and, on the last line I got Error like
"Only user-definided types definided in public object module can be coerced to or from Variant or passed to late-bound functions."

What can I do ?