An easy to understand sample source code to learn how to select active worksheet with spreadsheet sdk in VB.NET ByteScout Barcode Suite is the bundle that privides 3 SDK products to generate barcodes (Barcode SDK), read barcodes (Barcode Reaer SDK) and read and write spreadsheets (Spreadsheet SDK). It can be applied to select active worksheet with spreadsheet sdk using VB.NET.
This prolific sample source code in VB.NET for ByteScout Barcode Suite contains various functions and other necessary options you should do calling the API to select active worksheet with spreadsheet sdk. Just copy and paste the code into your VB.NET application’s code and follow the instructions. Use of ByteScout Barcode Suite in VB.NET is also described in the documentation included along with the product.
ByteScout provides the free trial version of ByteScout Barcode Suite along with the documentation and source code samples.
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