Irange = (Microsoft.Office.Interop.Excel.Range)worksheet.get_Range("I1", "I1").get_Resize(100, 1);spa
//獲取一整列I,行數爲100orm
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);pdo
Irange.Validation.InCellDropdown = true;get