Help!
Can one add a user-defined object to a Collections object?
I'm getting a compile error ("ByRef argument type mismatch") when I try the following :
fred.Add Item:=shinfo
I have previously declared as
Dim fred As New Collection
Dim shinfo as WSinfo
and WSinfo is a userdefined type (Global) defined outside the subroutine.
If I "Dim shinfo as Integer" (instead of my user-defined type), the program compiles without any problem. Any help as to what I'm doing wrong will be appreciated!
Yours baffled
HedgePig
Can one add a user-defined object to a Collections object?
I'm getting a compile error ("ByRef argument type mismatch") when I try the following :
fred.Add Item:=shinfo
I have previously declared as
Dim fred As New Collection
Dim shinfo as WSinfo
and WSinfo is a userdefined type (Global) defined outside the subroutine.
If I "Dim shinfo as Integer" (instead of my user-defined type), the program compiles without any problem. Any help as to what I'm doing wrong will be appreciated!
Yours baffled
HedgePig