Since the information you provided is rather incomplete I can give you only a generic answer on how to populate dropdown lists.
A dropdown list in HTML is a <select>
element, and the items listed in the dropdown list are <option>
elements. The HTML code looks somewhat like this:
<select id="fruit">
<option value="green">Apple</option>
<option value="yellow" selected>Banana</option>
<option value="red">Strawberry</option>
</select>
The presence of an attribute selected
indicates that an option is selected.
To populate a dropdown list you need to add <option>
elements to the <select>
element, e.g. like this:
'sample data
data = CreateObject("Scripting.Dictionary")
data.Add "green" , "Apple"
data.Add "yellow", "Banana"
data.Add "red" , "Strawberry"
'get dropdown list element
Set list = document.getElementById("fruit")
'populate dropdown list with sample data
For Each fruit In data.Keys
Set opt = document.createElement("OPTION")
opt.Text = data(fruit)
opt.Value = fruit
list.Add opt
Next
If that doesn't help you need to provide more information about your source data, the elements you want to populate, and how the result should look like.
Edit: If you want to select an option from an already populated dropdown list if it matches the value of a given cell from an Excel spreadsheet you'd do it like this:
'get dropdown list element
Set list = document.getElementById("fruit")
'select matching element
For Each opt In list.Options
If opt.Text = oWorksheet.Cells(r, c+5).Value Then opt.Selected = True
Next