Hi ,
I am using the following code for create a combobox in the excel, but I am getting the selected Index in the cell that is linked with the combobox.
I want the selected value to appear in the cell that is linked with the combobox.
Workbook workbook = new Workbook();
//Get the first worksheet.
Worksheet sheet = workbook.Worksheets[0];
//Adds a new combo box.
ComboBox comboBox = sheet.Shapes.AddComboBox(2, 0, 2, 0, 50, 50);
//Sets the linked cell;
comboBox.LinkedCell = "A1";
//Sets the input range.
comboBox.InputRange = "A2:A7";
//Saves the file.
workbook.Save(@"F:\FileTemp\dest.xls");
Please suggest the code for the same .
Regards
Tushar
This message was posted using Page2Forum from ComboBox Members - Aspose.Cells for .NET