Question COM Object Help required

Hi,

I am using the below code to add new rows and copy-paste the contents to each row. I want to delete a particular row.
Please help me in finding the exact code to DELETE one row which I created in the WORD document.

DO cnt = 1 TO 3:
ASSIGN W-CNT = W-CNT + 1.
IF W-CNT = 1 THEN NEXT.
ASSIGN W-NEWROW = W-Table-2:Rows:Add(W-Table-2:rows:item(1)).
do c-cnt = 1 to 2 :
W-ORIGROW:CELLS:ITEM(2):RANGE:copy.
W-NEWROW:CELLS:ITEM(2):RANGE:paste.
END.
END.
Thanks
-philip-
 

Osborne

Active Member
If you know the row number then something similar to either of these:
Code:
chWorkSheet:Rows(4):Delete.
chWorksheet:Rows(vRow):EntireRow:Delete.
If working with a range then something similar to:
Code:
chWorkSheet:Range(vRange):EntireRow:Delete.

/* Or */
chRange = chWorksheet:Range(chWorksheet:Cells(vRow,vCol),chWorksheet:Cells(vRow,vCol)).
chRange:EntireRow:Delete.
chRange:Cells(c-cnt):EntireRow:Delete.
 
Top