How can you add a list (dropdown) using a comma-separated string? I'd rather not have to use a range of cells from an existing worksheet.
I tried:
cell.Value = "Awesome";
var list = new List<string> {"Could be better", "Average", "Awesome"};
cell.DataValidation.List(string.Join(",", list.ToArray()), true);
Excel tries to repair the document and I get the following exception message: "Removed Feature: Data validation from /xl/worksheets/sheet.xml part"
Thanks,
Cameron
↧