I introduce such a code but does not generate anything in Sheet2.
Please help me!
- Code: Select all
sheet2.Copy(sheet_pivot.Range[2, 1, lastRow + 1, lastCol], sheet2.Range[1, 1, lastRow + 1, lastCol])
sheet2.Copy(sheet_pivot.Range[2, 1, lastRow + 1, lastCol], sheet2.Range[1, 1, lastRow + 1, lastCol])
CellRange range_pivot = sheet_pivot.Range[2, 1, lastRow + 1, lastCol];
range_pivot.Copy(sheet2.Range[1, 1, lastRow + 1, lastCol]);
CellRange range_pivot = compare.Range["A2:S13"];
range_pivot.Copy(fincomp.Range["A1:S12"]);