Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
saving same datatable modified by diff sources
#7
Not Solved
U need to append the exls file instead of writing it again
Below code might help u:

Code:
Dim fso
Set fso=CreateObject("Excel.Application")
fso.visible=true
Set excel_obj=fso.workbooks.open("D:\BookingResults\test1.xls")
Set obj_worksheet=excel_obj.worksheets(1)
cell_address=obj_worksheet.UsedRange.Address
add_array=split(cell_address,"$",-1,0)
row=add_array(2)+1
col=add_array(1)
obj_worksheet.cells(row,col).activate
obj_worksheet.cells(row,col).value="Hi"

Correct me if wrong
Regards,
Sankalp
Reply


Messages In This Thread
RE: saving same datatable modified by diff sources - by sshukla12 - 08-04-2011, 03:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to find the latest modified file in QC11 current test attachment using QTP10 shiv.cse 0 1,760 07-23-2013, 01:25 AM
Last Post: shiv.cse
  QTP is throwing session error after saving the page but manually not in AJAX and JSF sking511 2 3,244 07-22-2010, 04:33 AM
Last Post: sking511
  what is diff between session id and GUI, ROCS number sunny rao 0 1,426 01-15-2009, 08:04 PM
Last Post: sunny rao

Forum Jump:


Users browsing this thread: 1 Guest(s)