The code displayed below will guide you to install an VB.NET app to copy worksheet with spreadsheet sdk. ByteScout Data Extraction Suite is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK and you can use it to copy worksheet with spreadsheet sdk with VB.NET.
The following code snippet for ByteScout Data Extraction Suite works best when you need to quickly copy worksheet with spreadsheet sdk in your VB.NET application. Just copy and paste the code into your VB.NET application’s code and follow the instructions. Further improvement of the code will make it more robust.
The trial version of ByteScout Data Extraction Suite can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.
Imports System Imports System.Collections.Generic Imports System.Text Imports Bytescout.Spreadsheet Imports System.Diagnostics Imports System.IO Module Module1 Sub Main() ' Open existing Spreadsheet Dim document As New Spreadsheet() document.LoadFromFile("input.xls") ' Create copy of worksheet document.Workbook.Worksheets.Copy(0, 1, "Copy of Sheet1") ' remove output file if already exists If File.Exists("Output.xls") Then File.Delete("Output.xls") End If ' Save document document.SaveAs("Output.xls") ' Close Spreadsheet document.Close() ' open in default spreadsheets viewer/editor Process.Start("Output.xls") End Sub End Module