A "Class" is a way of defining a new object and attributes.

let's say you wanted to create an object called "People".

Now, for each person in "People" you wanted to save the
Name
Address
City
Postal_Code
Phone_Home
Phone_Work
Phone_Cell
Birthday
Start_Date

You would define this "Class" in a Class Module.

Then, in a "Regular" module, you could create a new variable like:

Dim Employee as People

then, the Employee variable automatically has the properties:

Employee.Name
Employee.Address
Employee.City
Employee.Postal_Code 
Employee.Phone_Home
Employee.Phone_Work
Employee.Phone_Cell
Employee.Birthday
Employee.Start_Date
 
 
Of course, it's EMPTY until your macro fills it.
 
to find examples (and a better explanation!)
Just Google "VBA Class Module".
 
You'll find HUNDREDS of good articles!
 
Paul




________________________________
From: Umesh Dev <umesh.d...@gmail.com>
To: excel-macros@googlegroups.com
Sent: Thursday, October 1, 2009 6:56:08 AM
Subject: $$Excel-Macros$$ Difference of Modules


Hi All,

Can anyone tell the difference between a Module and a Class Module. What are 
the advantages in writing a code in either Module/Class Module.

Regards
Umesh Dev

--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe
-~----------~----~----~----~------~----~------~--~---

Reply via email to