VBA Attributes

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

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.


Got any VBA Question?