I don't want to refer to a Listbox that is on a Form so in a BAS module I do this:
Private MyList as Listbox
then in a Sub I do this:
Set MyList = New Listbox
MyList.AddItem "entry 1"
etc
but VB does not like my Set statement so how do I do it
Private MyList as Listbox
then in a Sub I do this:
Set MyList = New Listbox
MyList.AddItem "entry 1"
etc
but VB does not like my Set statement so how do I do it