how to set selected index for dropdown already present in excel .
Code -
Define the data for the dropdown list (assuming it's "Option 1", "Option 2", "Option 3")
e.g.
Dim dropdownOptions As String() = {"Option 1", "Option 2", "Option 3"}
We are accessing the dropdown like below and set the value--
worksheet.Range("B9").value = "Option 2"
When we assign this drodown value , it is adding as text to dropdown cell, and not the item selected in dropdown.
Please give us proper example how to access the dropdown form excel worksheet and set the value at runtime.
I have gone through below documentation link for same -- But not getting info for setting the value of dropdown at runtime
https://www.e-iceblue.com/Knowledgebase ... 20property.