ByteScout Spreadsheet SDK - VB.NET - Create Worksheets - ByteScout

ByteScout Spreadsheet SDK – VB.NET – Create Worksheets

  • Home
  • /
  • Articles
  • /
  • ByteScout Spreadsheet SDK – VB.NET – Create Worksheets

How to create worksheets in VB.NET using ByteScout Spreadsheet SDK

How to code in VB.NET to create worksheets with this step-by-step tutorial

The sample source codes on this page shows how to create worksheets in VB.NET. What is ByteScout Spreadsheet SDK? It is the SDK component for writing, reading, modifying and calculating Excel and CSV spreadsheets. Can calculate and reculculate formulas with Excel installed. You may import or export data to and from CSV, XML, JSON. Supports export to databases, arrays, streams. It can help you to create worksheets in your VB.NET application.

You will save a lot of time on writing and testing code as you may just take the VB.NET code from ByteScout Spreadsheet SDK for create worksheets below and use it in your application. Follow the instructions from the scratch to work and copy the VB.NET code. Enjoy writing a code with ready-to-use sample VB.NET codes.

ByteScout free trial version is available for download from our website. It includes all these programming tutorials along with source code samples.

Try ByteScout Spreadsheet SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

Imports Bytescout.Spreadsheet Imports System.IO Module Module1 Sub Main() ' Create new Spreadsheet Dim document = New Spreadsheet() ' Add worksheets Dim worksheet1 As Worksheet = document.Workbook.Worksheets.Add("Demo worksheet 1") Dim worksheet2 As Worksheet = document.Workbook.Worksheets.Add("Demo worksheet 2") ' Get worksheet by name Dim worksheetByName As Worksheet = document.Workbook.Worksheets.ByName("Demo worksheet 2") ' Set cell values worksheet1.Cell(0, 0).Value = "This is Demo worksheet 1" worksheetByName.Cell(0, 0).Value = "This is Demo worksheet 2" ' 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

Try ByteScout Spreadsheet SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)



Get 60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page

Explore ByteScout Spreadsheet SDK Documentation

Get ByteScout Spreadsheet SDK Free Training


Get Your Free API Key

Explore Web API Documentation