Every ByteScout tool contains example VBScript source codes that you can find here or in the folder with installed ByteScout product. Want to change cell background color in your VBScript app? ByteScout Spreadsheet SDK is designed for it. ByteScout Spreadsheet SDK 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.
VBScript code samples for VBScript developers help to speed up coding of your application when using ByteScout Spreadsheet SDK. In your VBScript project or application you may simply copy & paste the code and then run your app! Detailed tutorials and documentation are available along with installed ByteScout Spreadsheet SDK if you’d like to dive deeper into the topic and the details of the API.
Trial version of ByteScout Spreadsheet SDK can be downloaded for free from our website. It also includes source code samples for VBScript and other programming languages.
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.Value = "One Two Three" cell.FillPattern = 1 ' Solid color cell.FillPatternForeColorOLE = vbMagenta ' use standard VB color constants or hex values &HFFFF00 ' save document document.SaveAs "Output.xls" ' close Spreadsheet Set document = Nothing