Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to delete row from the runtime Datatable


hi ,
i have created a Excel sheet in the QTP script by using createobject
method . Now there is anther script where i have to retrive the value
of each row from that excel sheet and delete it .since i am able to
retrive the value from the excel sheet but cant delete the whole row ..
please help me
i m sending you the code for the retriving the row values ...

Dim objExcel, strPathExcel,strCN
Dim objSheet, intRow

intRow = 6
Set objExcel = CreateObject("Excel.Application")
strPathExcel = "C:\ALTable1\tablew13 July.xls"
objExcel.Workbooks.open strPathExcel
Set objSheet = objExcel.ActiveWorkbook.Worksheets(1)
'Do Until objExcel.Cells(intRow,1).Value = ""
strCN1 = Trim(objSheet.Cells(intRow, 1).Value)
msgbox strCN1
strCN = Trim(objSheet.Cells(intRow, 2).Value)
msgbox strCN
strCN2 = Trim(objSheet.Cells(intRow, 3).Value)
msgBox strCN2



PLEASE HELP ME AS SOON AS POSSIBLE
thanks


--
sweta26_kum
------------------------------------------------------------------------
sweta26_kum's Profile: http://www.excelforum.com/member.php...o&userid=36477
View this thread: http://www.excelforum.com/showthread...hreadid=562404

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart's DataTable fujing1003 Charts and Charting in Excel 5 February 8th 07 11:20 AM
Excel into DataTable using OleDbDataAdapter Matthew_H Excel Programming 1 March 4th 05 08:25 AM
getting runtime error when trying to delete records SM Excel Programming 1 April 16th 04 09:11 PM
runtime error '1004' delete Method of Range Class Failed Tom Kennedy Excel Programming 0 April 14th 04 08:08 PM
runtime error '1004' delete Method of Range Class Failed Tom Ogilvy Excel Programming 0 April 1st 04 04:09 AM


All times are GMT +1. The time now is 06:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"