Tevfik_Kursun
Altın Üye
- Katılım
- 30 Temmuz 2012
- Mesajlar
- 3,903
- Excel Vers. ve Dili
- Office 2016 Pro - Türkçe 64 Bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Dim t As Integer
Sub AYIR()
uzn = Len(ActiveCell.Value)
sat = ActiveCell.Row
For t = 1 To uzn
If Mid(ActiveCell.Value, t, 1) = "," Then Exit For
Next t
Cells(sat, 4) = Mid(ActiveCell.Value, 1, t - 1)
Cells(sat, 5) = Mid(ActiveCell.Value, t + 1, uzn - t + 1)
End Sub
İginize çok teşekkür ederim
Saygılarımla
Sub test()
Dim i&, bol As Variant, al$
For i = 2 To Cells(Rows.Count, 2).End(3).Row
al = Cells(i, 2).Value
If InStr(al, ",") Then
bol = Split(al, ",")
Cells(i, 4).Value = bol(1)
Cells(i, 5).Value = bol(0)
Else
Cells(i, 4).Value = al
End If
Next i
End Sub