Sayfa1 deki buton ile çalışacak fakat sayfa 2 nin A sütununu txt olarak kaydedecek şekilde nasıl düzenleye bilirim
Dim i, sat As Integer
sat = ActiveSheet.UsedRange.Rows.Count
Open ThisWorkbook.Path & "\" & [b1] & ".Dosya" For Output As #1
For i = 1 To sat
If Cells(i, "a") <> "" Then
Print #1, Cells(i, "a")
End If
Next i
Close
Dim i, sat As Integer
sat = ActiveSheet.UsedRange.Rows.Count
Open ThisWorkbook.Path & "\" & [b1] & ".Dosya" For Output As #1
For i = 1 To sat
If Cells(i, "a") <> "" Then
Print #1, Cells(i, "a")
End If
Next i
Close
