Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using a macro, how to assign a variable with multiple values to a Field ?

Using the Actions > Select in Field option, we can assign a variable with multiple values to a Field. I would like to find out it's equivalent using a macro. Anyone ?

Something along the line of where vTestLocation is a variable.

ActiveDocument.Fields("Test Location").Select vTestLocation

1 Reply
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

I think that you need to use an array of values in order to select multiple values in a macro - look for API "SelectAndValues"