I know it's not Excel, but I could find the right category to place my simple VBA question.
I'm trying to add entries to a dropdown list, but I would like to add both a text and a value. I've tried following but I get following error: "Compile error: Expected: =".
I'm trying to add entries to a dropdown list, but I would like to add both a text and a value. I've tried following but I get following error: "Compile error: Expected: =".
Code:
ActiveDocument.ContentControls(3).DropdownListEntries.Add("Cat", 2)