Irange = (Microsoft.Office.Interop.Excel.Range)worksheet.get_Range("I1", "I1").get_Resize(100, 1);
//获取一整列I,行数为100
Irange.Validation.Add(Microsoft.Office.Interop.Excel.XlDVType.xlValidateList,
Microsoft.Office.Interop.Excel.XlDVAlertStyle.xlValidAlertStop,
Microsoft.Office.Interop.Excel.XlFormatConditionOperator.xlBetween,
ConfigurationSettings.AppSettings["ContractType"].ToString(),
Type.Missing);
Irange.Validation.InCellDropdown = true;
Validation.Add();Excel,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/glj1203/p/3750511.html