1. For more QTP Realtime Scripts, visit www.ramupalanki.com
Set objExcel = CreateObject(“Excel.Application”)
objExcel.Visible = True
set newWorkbook=objExcel.Workbooks.Add
Set objNewWorksheet= newWorkbook.Worksheets(1)
objNewWorksheet.Range(“A1:A3″).Interior.ColorIndex = 3′ To select multiple cells
‘(or)
objNewWorksheet.Cells(1,2).Interior.ColorIndex = 3′To select single cell
set objExcel=nothing