An easy to understand guide to learn how to swap worksheets with spreadsheet sdk in VB.NET. ByteScout Data Extraction Suite was made to help with swap worksheets with spreadsheet sdk in VB.NET. 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.
VB.NET code snippet like this for ByteScout Data Extraction Suite works best when you need to quickly implement swap worksheets with spreadsheet sdk in your VB.NET application. If you want to know how it works, then this VB.NET sample code should be copied and pasted into your application’s code editor. Then just compile and run it. VB.NET application implementation mostly involves various stages of the software development so even if the functionality works please check it with your data and the production environment.
Visit our website to get a free trial version of ByteScout Data Extraction Suite. Free trial contains many of source code samples to help you with your VB.NET project.
Imports System Imports System.Collections.Generic Imports System.Text Imports Bytescout.Spreadsheet Imports System.Diagnostics Imports System.IO Module Module1 Sub Main() ' Create new Spreadsheet Dim document As New Spreadsheet() document.LoadFromFile("sample.xls") ' Move page document.Workbook.Worksheets.Move(1, 0) ' 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