![]() |
Repost: ListBox Headings - customized! Class Module (warning: long post)"
Ivan
Yes, I would have liked in this and many other situations to able to use Enum but I'm aware that many people still only have access to Excel 97 - like at my office. Other things missing in Excel 97 class modules which can be a nuisance at times in Office 97 class modules a * the inability to *raise* events * apply the AddressOf operator (although I'm familiar with the AddrOf workaround but can only refer to functions in standard modules) * create default properties (except through back door for Excel 2000+) * create VB Friend properties * create a private enumerator property (although one can simulate enumeration by creating an Items property which points to the hidden collection object) * create publicnotcreatable or even multiuse instances of class modules * create control arrays in a userform (although a clever workaround does exist) * use Implements for user defined interfaces I know some of these have been introduced in more recent versions. Pity also that the format for VBA UserForm and VB Form (with associated *.frx files) are different making conversions between the two tedious (conversion tools do exist though). (Ivan F Moala) wrote in message . com... Thanks Ian That's a good one to add to my collection. The only thing I added was to Enum, as I use Xl2000/xl2003 and I like to use intellisence ie. select the proporties values. Xl97 doesn't support Enum. |
Repost: ListBox Headings - customized! Class Module (warning: long post)"
|
Repost: ListBox Headings - customized! Class Module (warning: long post)"
(Jamie Collins) wrote in message . com...
(Robots) wrote ... apply the AddressOf operator (although I'm familiar with the AddrOf workaround but can only refer to functions in standard modules) You can't use AddressOf operator to refer to functions in class modules either. The reason is due to calling convention and COM etc but it's a fundamental issue. Think about it: which instance of the class would you expect e.g. the callback to apply to? Jamie. -- Thanks Jamie. I'll remember(?) that. I presume same thing apply to VB. |
Repost: ListBox Headings - customized! Class Module (warning: long post)"
|
All times are GMT +1. The time now is 03:58 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com