bir tane txt dosyasından değer çekiyorum çekmiş olduğum değeri her seferde yeni bir sheet olarak ekleyebilirmiyim.
çektiğim sayfayı arşivlemek istiyorum.
Dim dosya As String, d As String
Dim arr As Variant, c As Integer, s As Long
Const SUT As Integer = 84
On Error Resume Next
dosya = Application.GetOpenFilename( _
"Text Dosyaları (*.txt) (*.txt), *.txt", 1, _
"test")
If dosya = "False" Then Exit Sub
Range(Cells(1, 1), Cells(65536, SUT)).Columns.NumberFormat = "@"
Open dosya For Input As #1
While Not EOF(1)
s = s + 1
Line Input #1, d
arr = Split(d, vbTab)
For c = 0 To SUT
Cells(s, c + 1) = arr(c)
Next
Wend
Close #1
If Err.Number <> 0 Then MsgBox Err.Description, vbExclamation, _
"test"
çektiğim sayfayı arşivlemek istiyorum.
Dim dosya As String, d As String
Dim arr As Variant, c As Integer, s As Long
Const SUT As Integer = 84
On Error Resume Next
dosya = Application.GetOpenFilename( _
"Text Dosyaları (*.txt) (*.txt), *.txt", 1, _
"test")
If dosya = "False" Then Exit Sub
Range(Cells(1, 1), Cells(65536, SUT)).Columns.NumberFormat = "@"
Open dosya For Input As #1
While Not EOF(1)
s = s + 1
Line Input #1, d
arr = Split(d, vbTab)
For c = 0 To SUT
Cells(s, c + 1) = arr(c)
Next
Wend
Close #1
If Err.Number <> 0 Then MsgBox Err.Description, vbExclamation, _
"test"
