Update ActiveX ComboBox Control

Possible Usage Scenarios

You can read or write the values of ActiveX ComboBox Control using Aspose.Cells. Please access the ActiveX Control via Shape.ActiveXControl property and check its type via ActiveXControl.Type property, it should return ControlType.ComboBox value and then typecast it into ComboBoxActiveXControl object and read or modify its various properties.

Please download the sample excel file used in the following sample code.

Update ActiveX ComboBox Control

The following screenshot shows the effect of the sample code on the sample excel file. As you can see, the ActiveX ComboBox value has been updated to “This is combo box control”.

todo:image_alt_text

Sample Code

The following sample code updates the value of ActiveX ComboBox Control present inside the sample excel file.