Results 1 to 2 of 2

Thread: test colour highlight code

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,478
    Location

    test colour highlight code

    Private Sub CommandButton21_Click()
        With Worksheets("Report").Activate
            With Range("A1" & Range("AS" & Rows.Count).End(xlUp))
                .AutoFilter Field:=45, Criteria1:="2 - WAY"
                On Error Resume Next
                .Offset(1).SpecialCells(12).EntireRow.Delete
            End With
            .AutoFilterMode = False
        End With
    End Sub
    Last edited by Aussiebear; 10-24-2024 at 12:54 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
  •