QTP Script to change first cell font text to bold of an excel sheet-VB Script to change first cell font text to bold of an excel sheet.


QTP Script to change first cell font text to bold of an excel sheet.



dim a,b,c

set a=createobject("Excel.Application")

a.visible=true

set b=a.workbooks.open("C:\QTP.xls")

set c=b.worksheets(1)

c.Cells(1,1).Value="QTP"

c.Cells(1,1).Font.Bold=True

b.save

No comments:

Related Posts Plugin for WordPress, Blogger...