arkadaşlar bir excel deki tabloyu başka bir excel'e aldırmak istiyorum. aramalarımda txt olanını bulabildim.
Sub()
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
bana bunun excel için olanı lazım. Kendimce uyarlamaya çalıştım ama olmadı :'(
Sub()
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
bana bunun excel için olanı lazım. Kendimce uyarlamaya çalıştım ama olmadı :'(
