DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub aktar_59()
Dim sat As Long, deg, a As Integer, i As Integer, x
Sheets("Sayfa1").Select
Application.ScreenUpdating = False
Range("A2:X" & Rows.Count).ClearContents
sat = 2
Open (ThisWorkbook.Path & "\1.CSV") For Input As #1
Do While Not EOF(1)
Line Input #1, deg
x = Split(deg, ";")
For a = 0 To UBound(x)
Cells(sat, a + 1).Value = x(a)
Next
sat = sat + 1
Loop
Close #1
MsgBox "Veriler Alındı." & vbLf & "evrengizlen@hotmail.com", _
vbOKOnly + vbInformation, Application.UserName
End Sub
Cevabınız 2 nolu mesajdadır.![]()
Uzman Kardeşim, çok tşkrler.
benim işimi görür.
Dosyanız ektedir.ORİON BEY KARDEŞİM,
BU VERİYE N sütünuna kadar almamız mümkün mü ordan sonrasına formül kullaansam...
Sub aktar_59()
Dim sat As Long, deg, a As Integer, i As Integer, x, sut As Integer
Sheets("Sayfa1").Select
Application.ScreenUpdating = False
Range("A1:N" & Rows.Count).ClearContents
sat = 1
Open (ThisWorkbook.Path & "\1.CSV") For Input As #1
Do While Not EOF(1)
Line Input #1, deg
x = Split(deg, ";")
If UBound(x) > 13 Then
sut = 13
Else
sut = UBound(x)
End If
For a = 0 To sut
Cells(sat, a + 1).Value = x(a)
Next
sat = sat + 1
Loop
Close #1
Application.ScreenUpdating = True
MsgBox "Veriler Alındı." & vbLf & "evrengizlen@hotmail.com", _
vbOKOnly + vbInformation, Application.UserName
End Sub
Dosyanız ektedir.
Kod:Sub aktar_59() Dim sat As Long, deg, a As Integer, i As Integer, x, sut As Integer Sheets("Sayfa1").Select Application.ScreenUpdating = False Range("A1:N" & Rows.Count).ClearContents sat = 1 Open (ThisWorkbook.Path & "\1.CSV") For Input As #1 Do While Not EOF(1) Line Input #1, deg x = Split(deg, ";") If UBound(x) > 13 Then sut = 13 Else sut = UBound(x) End If For a = 0 To sut Cells(sat, a + 1).Value = x(a) Next sat = sat + 1 Loop Close #1 Application.ScreenUpdating = True MsgBox "Veriler Alındı." & vbLf & "evrengizlen@hotmail.com", _ vbOKOnly + vbInformation, Application.UserName End Sub
Uzman arkadaşım, aldığım verileri Bsutunundan başlasın;
Yani A sütunu boş kalsın, aynı zamanda isimler C sutunununa denk gelsinistiyorum ama bir türlü yapamadım. Mümkünse bir yardım daha...Selamlar...
Application.ScreenUpdating = False
[B][COLOR="Red"]Range("B1:O" & Rows.Count).ClearContents[/COLOR][/B]
sat = 1
Open (ThisWorkbook.Path & "\1.CSV") For Input As #1
For a = 0 To sut
[B][COLOR="Red"] Cells(sat, a + 2).Value = x(a)[/COLOR][/B]
Next
If UBound(x) > 13 Then
[B][COLOR="Red"] sut = 14[/COLOR][/B]
Else
Buyurun kırmızı yerleri değiştirdim.
Kod:Application.ScreenUpdating = False [B][COLOR="Red"]Range("B1:O" & Rows.Count).ClearContents[/COLOR][/B] sat = 1 Open (ThisWorkbook.Path & "\1.CSV") For Input As #1Kod:For a = 0 To sut [B][COLOR="Red"] Cells(sat, a + 2).Value = x(a)[/COLOR][/B] Next
Kod:If UBound(x) > 13 Then [B][COLOR="Red"] sut = 14[/COLOR][/B] Else