Merhaba Arkadaşlar.
Aşağıdaki kodla dışarıdan bir metin dosyasını alabiliyorum fakat almak istediğim metin dosyaları 3 sekmeyle ayrılmış ve ben bu sekmeleri 3 ayrı sütuna kaydetmek istiyorum. Yardım edebilir misiniz.
Sub TextAl()
Dim Satir As Long
Range("A:A").ClearContents
ChDir ("C:\")
dosya = Application.GetOpenFilename(FileFilter:="Txt dosyaları(*.txt),(*txt)", Title:="Txt Dosyası aç")
If dosya = False Then Exit Sub
Open dosya For Input As #1
Do While Not EOF(1)
Input #1, Kayit
If Kayit <> Empty Then
Satir = Satir + 1
Cells(Satir, "A") = Kayit
End If
Loop
Close #1
End Sub
Aşağıdaki kodla dışarıdan bir metin dosyasını alabiliyorum fakat almak istediğim metin dosyaları 3 sekmeyle ayrılmış ve ben bu sekmeleri 3 ayrı sütuna kaydetmek istiyorum. Yardım edebilir misiniz.
Sub TextAl()
Dim Satir As Long
Range("A:A").ClearContents
ChDir ("C:\")
dosya = Application.GetOpenFilename(FileFilter:="Txt dosyaları(*.txt),(*txt)", Title:="Txt Dosyası aç")
If dosya = False Then Exit Sub
Open dosya For Input As #1
Do While Not EOF(1)
Input #1, Kayit
If Kayit <> Empty Then
Satir = Satir + 1
Cells(Satir, "A") = Kayit
End If
Loop
Close #1
End Sub
