Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class module & module in Excel

Status
Not open for further replies.

airon

Programmer
Jun 21, 2001
21
0
0
US
Can anyone help me with better understanding the difference between a class module and a module in Excel VBA?

Thanks in advance,
Aaron
 
For most purposes you only need a regular module. Use a class module when you need to define a self-contained reusable object class with its own methods, properties, and so on. Most processing of workbooks and worksheets is done perfectly well in regular modules. In my experience, class modules make more sense when trying to conveniently do things that are NOT offered as a standard within Excel, often interfacing with other applications or system components.
Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top