DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Merhaba,
Makro olmaz, makro yazılır.
Örnek dosyanızı ekleyin yardımcı olacak arkadaş(lar) çıkacaktır.
Sub hucredeki_satirlari_hucrelere_bol()
Dim i As Long
For i = 6 To Range("F1").End(xlToRight).Column
Cells(1, i).Offset(1).Resize(UBound(Split(Cells(1, i), vbLf)) + 1) = Application.Transpose(Split(Cells(1, i), vbLf))
Next i
End Sub
veriler F1'den başlıyor değil mi?
Kod:Sub hucredeki_satirlari_hucrelere_bol() Dim i As Long For i = 6 To Range("F1").End(xlToRight).Column Cells(1, i).Offset(1).Resize(UBound(Split(Cells(1, i), vbLf)) + 1) = Application.Transpose(Split(Cells(1, i), vbLf)) Next i End Sub
veriler F1'den başlıyor değil mi?
Sub hucredeki_satirlari_hucrelere_bol()
Dim i As Long
For i = 6 To Range("F1").End(xlToRight).Column
Cells(1, i).Resize(UBound(Split(Cells(1, i), vbLf)) + 1) = Application.Transpose(Split(Cells(1, i), vbLf))
Next i
End Sub
Sub hucredeki_satirlari_hucrelere_bol()
Dim i As Long
[COLOR="Red"] On Error Resume Next[/COLOR]
For i = 6 To Cells(1, Columns.Count).End(xlTo[COLOR="red"]Left[/COLOR].Column
Cells(1, i).Offset(1).Resize(UBound(Split(Cells(1, i), vbLf)) + 1) = Application.Transpose(Split(Cells(1, i), vbLf))
Next i
End Sub
'For Each hucre In shf1.Range("C2:C" & ss2)
'If UCase(hucre.Value) = Empty Then
'sonuc2 = sonuc2 & hucre.Value
'Else
'sonuc2 = sonuc2 & hucre.Value & Chr(10)
'End If
'Next hucre
'shf1.Range("B3").Value = sonuc2
Sub Birlestir()
Dim Ver As Range, x As Long, Sonuc As String
For Each Veri In Range("F1:BO1")
For x = 2 To Cells(Rows.Count, Veri.Column).End(3).Row
If Sonuc = "" Then
Sonuc = Cells(x, Veri.Column)
Else
Sonuc = Sonuc & vbLf & Cells(x, Veri.Column)
End If
Next
Cells(1, Veri.Column) = Sonuc
Sonuc = ""
Next
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Sub hucreleri_tek_hucrede_birlestir()
Dim i As Long
For i = 6 To Cells.Find("*", , , , xlByColumns, xlPrevious).Column
Cells(1, i) = Join(Application.Transpose(Range(Cells(2, i), Cells(Cells(Rows.Count, i).End(xlUp).Row, i))), vbLf)
Next i
End Sub