Qtp Script to add an image to excel sheet-Qtp Script to insert an image into excel worksheet


Qtp Script to insert an image into excel worksheet



Set Excel = CreateObject("Excel.Application")

 Excel.Visible = True

 Set workbook = Excel.WorkBooks.Open("C:\abc.xls") 

Set worksheet = workbook.Worksheets(1)

 Excel.ActiveCell.Worksheet.Pictures.Insert("C:\image1.JPG")

No comments:

Related Posts Plugin for WordPress, Blogger...

Fun and Knowledge