This page explains the steps and algorithm of implementing unmerge cells with spreadsheet sdk and how to make it work in your application. ByteScout Barcode Suite was created to assist unmerge cells with spreadsheet sdk in VB.NET. ByteScout Barcode Suite is the set that includes three different SDK products to generate barcodes, read barcodes and read and write spreadsheets: Barcode SDK, Barcode Reader SDK and Spreadsheet SDK.
The below SDK samples describe how to quickly make your application do unmerge cells with spreadsheet sdk in VB.NET with the help of ByteScout Barcode Suite. Just copy and paste this VB.NET sample code to your VB.NET application’s code editor, add a reference to ByteScout Barcode Suite (if you haven’t added yet) and you are ready to go! Check these VB.NET sample code examples to see if they acknowledge to your needs and requirements for the project.
Trial version along with the source code samples for VB.NET can be downloaded from our website
Imports Bytescout.Spreadsheet Imports System.IO Module Module1 Sub Main() ' Create new Spreadsheet Dim document As New Spreadsheet() document.LoadFromFile("Input.xls") ' Get worksheet by name Dim worksheet As Worksheet = document.Workbook.Worksheets(0) ' Unmerge cells worksheet.Range("B6:D18").UnMerge() ' 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