LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Problem with Type in a class module...

Indeed help is misleading, but no can do. It makes sense, your own UD type
in a class module would cause serious compile problems when used elsewhere
until an instance of your class exists, not to mention the possibility of
multiple instances of the same class.

Same goes for public constants and declares. However I've never quite
understood why a normal array can't be public in a class.

Regards,
Peter T


"darlove" wrote in message
oups.com...
Hi.

This is an excerpt from the Help files:

"In standard modules and class modules,
user-defined types are public by default.
This visibility can be changed using the
Private keyword."

This is very curious (and mysterious?)
because I want to declare a public
type in a class module and the VBE
protests. Anybody in the know?

Darek



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RefEdit in Class Module Problem Mark Driscol[_2_] Excel Programming 6 June 27th 06 04:29 PM
Class Module Problem Jason Zischke Excel Programming 2 June 27th 06 06:07 AM
User-defined type collection in class module Rob[_29_] Excel Programming 2 May 31st 06 06:02 PM
Userform with template class module problem Tom Ogilvy Excel Programming 1 July 18th 03 09:15 PM


All times are GMT +1. The time now is 10:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"