Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- activeSheet.Copy(Type.Missing, activeSheet);
- var outputSheetIndex = activeSheet.Index + 1;
- var outputSheet = (Worksheet)application.Sheets[outputSheetIndex];
- var startCell = outputSheet.Cells[1, 1];
- var endCell = outputSheet.Cells[output.Count(),
- properties.Length + 1];
- var writeRange = outputSheet.Range[startCell, endCell];
- writeRange.Insert(XlInsertShiftDirection.xlShiftToRight);
Add Comment
Please, Sign In to add comment