I am having problems with listbox events in a excel class Module.
Problems
1. I can not get the listbox to work when declare it as
Public LB as listbox
2. I can get the listbox to work with out the events if I declare it as
Public LB as object
I have tried
Public LB as excel.listbox.. .but .listbox is not a drop down option
I have also tried
Public LB as application.lis tbox....but that did not seem to work.
None of them allow me to add the declare variable "WithEvents "
The goal of my two modules is to allow drag and drop of a collection of user defined documents. The listboxes are multicolumn listboxes and are populate from a array returned from the document object. The listbox and the collection of objects listed in the listbox are variables in a user definded class. Then that user defined class is is added to another user defined class that is just a collection for the former.
It might be easier for me to send code :)
Problems
1. I can not get the listbox to work when declare it as
Public LB as listbox
2. I can get the listbox to work with out the events if I declare it as
Public LB as object
I have tried
Public LB as excel.listbox.. .but .listbox is not a drop down option
I have also tried
Public LB as application.lis tbox....but that did not seem to work.
None of them allow me to add the declare variable "WithEvents "
The goal of my two modules is to allow drag and drop of a collection of user defined documents. The listboxes are multicolumn listboxes and are populate from a array returned from the document object. The listbox and the collection of objects listed in the listbox are variables in a user definded class. Then that user defined class is is added to another user defined class that is just a collection for the former.
It might be easier for me to send code :)
Comment