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

Property Builder

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.
  1. Start Add Property Builder
    This opens the dialog asking you to give the property a name
  2. Type the name for the property
  3. Optionally select the Public or Private radio buttons
  4. Select a type in the listbox - or type it in if it is not listed
  5. Press Enter to have the declaration code for the property inserted

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