ByteScout Spreadsheet SDK - VB.NET - Search Text - ByteScout

ByteScout Spreadsheet SDK – VB.NET – Search Text

  • Home
  • /
  • Articles
  • /
  • ByteScout Spreadsheet SDK – VB.NET – Search Text

How to search text in VB.NET using ByteScout Spreadsheet SDK

The tutorial below will demonstrate how to search text in VB.NET

With this source code sample you may quickly learn how to search text in VB.NET. ByteScout Spreadsheet SDK is the SDK to create, read, modify and calculate spreadsheets. Formula calculations are supported, import and export to and from JSON, CSV, XML, databases, arrays. It can search text in VB.NET.

Fast application programming interfaces of ByteScout Spreadsheet SDK for VB.NET plus the instruction and the code below will help you quickly learn how to search text. In order to implement the functionality, you should copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Implementing VB.NET application typically includes multiple stages of the software development so even if the functionality works please test it with your data and the production environment.

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: Get 60 Day Free Trial or sign up for Web API

Program.vb
      
Imports Bytescout.Spreadsheet Imports Bytescout.Spreadsheet.BaseClasses Class Program Friend Shared Sub Main(args As String()) ' Open spreadsheet from file Dim document As New Spreadsheet() document.LoadFromFile("example.xls") ' Get first worksheet Dim worksheet As Worksheet = document.Workbook.Worksheets(0) ' Find cells containing "in" substring Dim cell As Cell = worksheet.Find("in", False, False, False) 'case insesitive, not regexp, search forward While cell IsNot Nothing ' Print found cell address and value to console Dim address As CellAddress = cell.GetAddress() Dim message As String = String.Format("({0}, {1}): {2}", address.Column, address.Row, cell.ValueAsExcelDisplays) Console.WriteLine(message) cell = worksheet.FindNext() End While document.Dispose() Console.WriteLine() Console.WriteLine("Press any key to continue.") Console.ReadKey(True) End Sub End Class

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

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout Spreadsheet SDK page

Explore ByteScout Spreadsheet SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next