VbsEdit, the award-winning VBScript editor that dramatically reduces the time you spend writing .VBS scripts

Sample scripts


Microsoft Office
   Microsoft Excel
       Format a Range of Cells

' Format a Range of Cells


Set objExcel = CreateObject("Excel.Application")

objExcel.Visible = True
objExcel.Workbooks.Add

objExcel.Cells(11).Value = "Name"
objExcel.Cells(11).Font.Bold = TRUE
objExcel.Cells(11).Interior.ColorIndex = 30
objExcel.Cells(11).Font.ColorIndex = 2
objExcel.Cells(21).Value = "Test value 1"
objExcel.Cells(31).Value = "Test value 2"
objExcel.Cells(41).Value = "Tets value 3"
objExcel.Cells(51).Value = "Test value 4"

Set objRange = objExcel.Range("A1","A5")
objRange.Font.Size = 14

Set objRange = objExcel.Range("A2","A5")
objRange.Interior.ColorIndex = 36

Set objRange = objExcel.ActiveCell.EntireColumn
objRange.AutoFit()



VbsEdit includes all these samples!




Download Now!

Version 5.4.1 - This package includes VbsEdit 32-bit, VbsEdit 64-bit, HtaEdit 32-bit and HtaEdit 64-bit.
The evaluation version never expires.



Home   Buy Now   HtaEdit   Support   Video   What's new ?  

Copyright (C) 2001-2012 Adersoft