Hi

Is possible to remove a specified row from an excel file using Visual
Basic ActiveX Script in a DTS package? I need to remove row 1 which
contains the title of the columns. Thanks in advance.

Joann

Re:Delete row from excel by Mo

Mo
Mon Feb 20 15:54:38 CST 2006

This is how you'd delete a row using vbscript.

Set objXL = CreateObject("Excel.Application")
set objWB = objXL.Workbooks.Open("c:\temp\book1.xls")
Set objWS = objWB.Worksheets("Sheet1")
objws.Rows("1:1").Delete
objWB.Save
objxl.quit

Re: Delete row from excel by jcma76

jcma76
Tue Feb 21 15:00:27 CST 2006

Thank you for your help. It worked out great! One more question, if I
need to insert the title of the columns instead, is there an insert
command!? Thank you!

jcma76@yahoo.com wrote:
> Hi
>
> Is possible to remove a specified row from an excel file using Visual
> Basic ActiveX Script in a DTS package? I need to remove row 1 which
> contains the title of the columns. Thanks in advance.
>
> Joann