ByteScout tutorials are designed to explain the code for both VBScript beginners and advanced programmers. ByteScout Spreadsheet SDK is the SDK that can write and read, modify and calculate Excel and CSV spreadsheets. Most popular formulas are supported. You may import or export data to and from CSV, XML, JSON as well as to and from databases, arrays. It can use rich text formatting in VBScript.
This rich sample source code in VBScript for ByteScout Spreadsheet SDK includes the number of functions and options you should do calling the API to use rich text formatting. In order to implement the functionality, you should copy and paste this code for VBScript below into your code editor with your app, compile and run your application. Enjoy writing a code with ready-to-use sample VBScript codes.
Free trial version of ByteScout Spreadsheet SDK is available on our website. Documentation and source code samples are included.
Set document = CreateObject("Bytescout.Spreadsheet.Spreadsheet") document.RegistrationName = "demo" document.RegistrationKey = "demo" ' Add new worksheet Set worksheet = document.Workbook.Worksheets.Add("HelloWorld") ' add cell with HTML formatted text Set cell = worksheet.Cell(1, 1) cell.ValueAsHTML = "<b>Bold text</b> and <i>Italic text</i>" ' delete output file if exists already Set fso = CreateObject("Scripting.FileSystemObject") If (fso.FileExists("Output.xls")) Then fso.DeleteFile("Output.xls") Set fso = nothing ' save document document.SaveAs "Output.xls" ' close Spreadsheet Set document = Nothing