VBA Attributes VB_Description


Adds a text description to a class or module member that becomes visible in the Object Explorer. Ideally, all public members of a public interface / API should have a description.

Public Function GiveMeATwo() As Integer
    Attribute GiveMeATwo.VB_Description = "Returns a two!"        
    GiveMeATwo = 2
End Property

Description Text in Object Explorer

Note: all accessor members of a property (Get, Let, Set) use the same description.