DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Sub BİRLEŞTİR()
Dim X As Long, İLK As Long, SON As Long
Application.ScreenUpdating = False
Columns("G:G").UnMerge
Columns("G:G").Clear
İLK = 6
For X = 6 To Range("F65536").End(3).Row
If Cells(X, "F") <> Cells(X + 1, "F") Then
SON = X
If İLK > 0 And SON > 0 Then
With Range("G" & İLK & ":G" & SON)
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = True
.Value = Cells(X, "F")
.Font.Bold = True
End With
İLK = X + 1
End If
End If
Next
Application.ScreenUpdating = True
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Sub birlestir()
ss = Range("f65536").End(3).Row
For i = 6 To ss
If Cells(i, 6) = Cells(i + 1, 6) Then
Range("g" & i & ":" & "g" & i + 1).Merge
End If
Next
End Sub