8000 Copying Worksheets · ClosedXML/ClosedXML Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Copying Worksheets

Francois Botha edited this page Oct 22, 2016 · 2 revisions
var wb = new XLWorkbook("BasicTable.xlsx");
var wsSource = wb.Worksheet(1);
// Copy the worksheet to a new sheet in this workbook
wsSource.CopyTo("Copy");

// We're going to open another workbook to show that you can
// copy a sheet from one workbook to another:
var wbSource = new XLWorkbook("BasicTable.xlsx");
wbSource.Worksheet(1).CopyTo(wb, "Copy From Other");

// Save the workbook with the 2 copies
wb.SaveAs("CopyingWorksheets.xlsx");

FAQ

Examples

Real world scenarios

Time Savers

Performance and Memory

Misc

Inserting Data/Tables

Styles

Ranges

Rows

Columns

Page Setup (Print Options)

AutoFilters

Comments

Dev docs

Clone this wiki locally
0