Every ByteScout tool includes simple example VB.NET source codes that you can get here or in the folder with installed ByteScout product. What is ByteScout Data Extraction Suite? It is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK. It can help you to select active worksheet with spreadsheet sdk in your VB.NET application.
Want to quickly learn? This fast application programming interfaces of ByteScout Data Extraction Suite for VB.NET plus the guidelines and the code below will help you quickly learn how to select active worksheet with spreadsheet sdk. Just copy and paste the code into your VB.NET application’s code and follow the instructions. This basic programming language sample code for VB.NET will do the whole work for you to select active worksheet with spreadsheet sdk.
All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.
Imports Bytescout.Spreadsheet Imports System.IO Module Module1 Sub Main() ' Create new Spreadsheet Dim document As New Spreadsheet() ' Add new worksheets Dim worksheet1 As Worksheet = document.Workbook.Worksheets.Add("Worksheet1") Dim worksheet2 As Worksheet = document.Workbook.Worksheets.Add("Worksheet2") Dim worksheet3 As Worksheet = document.Workbook.Worksheets.Add("Worksheet3") ' Activate worksheet2 worksheet2.Active = True ' 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