private static void CopyRow(ExcelSheet S, ExcelSheet D, List <int> Duplication) { int newrow = 2; D.CopyRow(1, S, 1); foreach (int row in Duplication) { D.CopyRow(newrow, S, row); newrow++; } }