VBA - How to add through VBA several values in a Multi-Value Attribute in AD RRS feed

  • Question

  • Hello,

    I am trying through a VBA code to add diferent lines to a single multi-value attribute in an AD.

    The final result in the AD attribute should look like this :


    1st value 2nd value

    I have tried the following logic in my code :

    objUser.Put "Multi-value Attribute", "1st value"
    objUser.Put "Multi-value Attribute", "2nd value"

    But when I'm running this, the only value that is inserted in the attribute is the last one (2nd value).

    How could I insert the two values with the line break in this multi-value attribute ?

    I have tried to separate the values with vbCrLf, without success.

    Thank you in advance for your help.

    Friday, October 18, 2019 2:43 PM