Results 1 to 8 of 8

Thread: Shade all Blank rows in Range

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,476
    Location
    Sub MarkRows()
        Dim cel as Range
        With ActiveSheet
            For Each cel In Intersect(.Columns(1), .UsedRange).SpecialCells(xlCellTypeBlanks)
                If Application.WorksheetFunction.CountBlank(cel.EntireRow) = 256 Then
                    cel.EntireRow.Interior.ColorIndex = 6
                End If
            Next
        End With
    End Sub
    Last edited by Aussiebear; 02-05-2025 at 12:27 PM.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •