View Full Version : I need unique values only in MyList

08-12-2008, 05:44 PM
Here is the code I am using. I get all the values into MyList, which is a dropdown box, but I can't seem to figure out how to keep duplicate entries from getting into it. If someone could help me with this, I'd greatly appreciate it. Thanks!

var MyList =
ActiveDocument.Sections["Dashboard - Customer Reports2"].Controls["DropDown2"]
MyList.RemoveAll() ;
var RowCount = ActiveDocument.Sections["Results - Customer Selection"].RowCount
var MyCol = ActiveDocument.Sections["Results - Customer Selection"].Columns["Sales Territory"]
for (j = 1 ; j <= RowCount ; j = j+1)
var Temp = MyCol.GetCell(j)