How to write into excel in QTP?

       Set objexcel = createobject("Excel.Application")

       Set objworkbook = objexcel.Workbooks.Open("Path of the excel")

       Set objworksheet = objworkbook.Worksheets("sheetname")

       objexcel.Visible = true

       objworksheet.cells(1,1).value = "Madhavi"

       objworksheet.cells(1,3).value = "Babu"

       objworksheet.cells(1,3).font.colorindex = 5 ‘coloring the text

       Set objexcel = nothing
      

Comments

Popular posts from this blog

Is QA a easy job?

Latest Version of TestComplete

Successful tester