- Код: Выделить всё
Type MyType
var1 as Integer
var2 as String
var3 as Boolean
End Type
Public MyVar as MyType
sub Test
MyVar =Range("A1:A3").value
...
end sub
VBA ругается: Only user-defined types defined in public object modules can be coerced to or from a variant or passed to late-bound functions.
И что это за "public object modules" в VBA?