create object for xl
option explicit
dim exo,wbo,wso,wbo1,wso1,i,a,b,c,d,e,f
set exo=createobjct("excel.application")
set wbo=exo.workbooks.open("path of xl file")
set wso=wbo.worksheets("sheet1")
set wbo1=exo.workbooks.add
set wso1=wbo.worksheets("sheet1")
now get the all row count of xl
i=1 y means first row xl column names
nor=wso.usedranged.rows.count
for i=1 to nor step 1
a=wso.cells(i,1)
b=wso.cells(i,2)
c=wso.cells(i,3)
d=wso1.cells(i,1)=a
e=wso1.cells(i,2)=b
f=wso1.cells(i,3)=c
next
wbo1.saveas("path of saved file")
set wso1=nothing
set wbo1=nothing
set wso=nothing
set wbo=nothing
set exo=nothing