Hirdetés

Új hozzászólás Aktív témák

  • Delila_1

    Topikgazda

    válasz tomi_x #46141 üzenetére

    Próbáld ezzel:

    Sub Formazas()
        Dim sor As Long, usor As Long
        usor = Range("A" & Rows.Count).End(xlUp).Row
        
        For sor = 2 To usor
            If Cells(sor, 1) = Cells(sor + 1, 1) Then
                With Range(Cells(sor, 1), Cells(sor, 15)).Font
                    .ThemeColor = xlThemeColorDark1
                    .TintAndShade = 0
                End With
                Range(Cells(sor, 1), Cells(sor, 15)).Borders(xlEdgeBottom).LineStyle = xlNone
            Else
                With Range(Cells(sor, 1), Cells(sor, 15)).Borders(xlEdgeBottom)
                    .LineStyle = xlContinuous
                    .ColorIndex = 0
                    .TintAndShade = 0
                    .Weight = xlMedium
                End With
                Range(Cells(sor, 1), Cells(sor, 15)).Font.ColorIndex = xlAutomatic
            End If
        Next
    End Sub

    Programozó: hibás programok megírására és kijavítására kiképzett szakember. Többet ésszel, mint ész nélkül.

Új hozzászólás Aktív témák