Attributes

Download vba eBook

Syntax

  • Attribute VB_Name = "ClassOrModuleName"
  • Attribute VB_GlobalNameSpace = False ' Ignored
  • Attribute VB_Creatable = False ' Ignored
  • Attribute VB_PredeclaredId = {True | False}
  • Attribute VB_Exposed = {True | False}
  • Attribute variableName.VB_VarUserMemId = 0 ' Zero indicates that this is the default member of the class.
  • Attribute variableName.VB_VarDescription = "some string" ' Adds the text to the Object Browser information for this variable.
  • Attribute procName.VB_Description = "some string" ' Adds the text to the Object Browser information for the procedure.
  • Attribute procName.VB_UserMemId = {0 | -4}
    • ' 0: Makes the function the default member of the class.
    • ' -4: Specifies that the function returns an Enumerator.

Related Examples

Stats

586 Contributors: 4
Friday, July 28, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook