herkese saygılar.Aşşağıdaki kod csv dosyalarını excele çevirmektedir.
sorum şudur.çevirme işlemi excel sayfasının ilk satırına geliyor bunu ikinci satırdan başlatmam için kodu nasıl yazmalıyız teşekkürler.
Sub dene()
fname = "C:\Documents and Settings\Administrator\Desktop\H001.csv"
If Dir(fname) <> "" Then
Cells.ClearContents
Open fname For Input As #1
Do While Not EOF(1)
Line Input #1, textline
textline = Trim(textline)
If textline <> "" Then
sat = sat + 1
a = Split(textline, ",")
sut = 1
For Each s In a
If (sut = 3 Or sut = 4) And IsNumeric(s) Then
Cells(sat, sut) = Val(s) / 10
Else
Cells(sat, sut) = s
End If
sut = sut + 1
Next s
End If
Loop
Close #1
End If
End Sub
sorum şudur.çevirme işlemi excel sayfasının ilk satırına geliyor bunu ikinci satırdan başlatmam için kodu nasıl yazmalıyız teşekkürler.
Sub dene()
fname = "C:\Documents and Settings\Administrator\Desktop\H001.csv"
If Dir(fname) <> "" Then
Cells.ClearContents
Open fname For Input As #1
Do While Not EOF(1)
Line Input #1, textline
textline = Trim(textline)
If textline <> "" Then
sat = sat + 1
a = Split(textline, ",")
sut = 1
For Each s In a
If (sut = 3 Or sut = 4) And IsNumeric(s) Then
Cells(sat, sut) = Val(s) / 10
Else
Cells(sat, sut) = s
End If
sut = sut + 1
Next s
End If
Loop
Close #1
End If
End Sub
