Put the type in a General module and make it public.
Public Type MyVar
var1 as long
var2 as string
End Type
Bob wrote:
In my module1 code I'm using a Type statement. The Userform1 doesn't appear
to support Type declariations. I get a compiler error "Can not define a
Public user-defined type within an object module.
Bob
"royUK" wrote:
The code really neds to be in the userform module.
--
royUK
Hope that helps, RoyUK
For tips & examples visit my 'web site' (http://www.excel-it.com/)
------------------------------------------------------------------------
royUK's Profile: http://www.thecodecage.com/forumz/member.php?userid=15
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=45431
--
Dave Peterson