How to access username object/string in a VBA Macro

Options
I am trying to access the username of the current user that is editing the record. In a macro, I am adding an attribute when a constituent is saved. Dim oAttr As IBBAttribute oAttr.Fields(Attribute_fld_ATTRIBUTETYPES_ID) = "Test Attribute" oAttr.Fields(Attribute_fld_VALUE) = << GET THE USER NAME WHO IS CURRENTLY EDITING THE RECORD >> oAttr.Fields(Attribute_fld_COMMENTS) = "Attribute updated by macro" oAttr.Fields(Attribute_fld_ATTRIBUTEDATE) = Now How do I access the data? Is it possible to have a list of objects that I have access to using VBA Macro. Any help or suggestions will be grateful. Thank you.

Comments

Categories