April 2006
Beginner
1114 pages
98h 16m
English
The main difference between the modules and classes is how you use them:
Code contained in modules can be used from formulas entered in cells.
Code stored in a class can respond to events that occur in Excel.
That distinction determines where you put your code—whether you create it in a module or a class. In general, put your code in a module if it performs a general-purpose task that you plan on reusing many different places. Put your code in a class if it responds to events or represents a visual component.
Those are just guidelines. The following two sections illustrate the differences more fully.
Read now
Unlock full access