Add Properties to a class using the Property Builder, fast and easy!

Properties can be added easily using the Property Builder. The Property Builder can be started in several ways:
- Alt-CCP | Menu: Code VBA » Custom class » Add Property;
- Alt-CDP | Menu: Code VBA » Declare » Property;
- Code Explorer - module node: Insert » Property.
- Start Add Property Builder
This opens the dialog asking you to give the property a name - Type the name for the property
- Optionally select the Public or Private radio buttons
- Select a type in the listbox - or type it in if it is not listed
- Press Enter to have the declaration code for the property inserted
Tip: An alternative to pressing the Insert is doubleclicking on the selected type.
Private or Public
The inserted property code is both read (Get) write (Let/Set). If you don't want one of them, just remove it.
Public means a property can be used from other classes, whether they are part of the current project or external to it.
Friend means a property can only be used by other classes in the current project.
Private properties can only be used by procedures in that class.
Private mstrName As String
Public Property Get Name() As String
Name = mstrName
End Property
Public Property Let Name(rData As String)
mstrName = rData
End Property