1
我想Excel單元格值添加到2D陣列withot使用VSTO來回環路...如何綁定二維陣列用Excel範圍在VSTO
我想Excel單元格值添加到2D陣列withot使用VSTO來回環路...如何綁定二維陣列用Excel範圍在VSTO
Excel.Range rng = myWorksheet.get_Range("A1:D4", Type.Missing);
//Get a 2D Array of values from the range in one shot:
object[,] myArray = (object[,])rng.get_Value(Type.Missing);