View Single Post
 
Old 06-06-2020, 04:02 PM
Purfleet Purfleet is offline Windows 10 Office 2019
Expert
 
Join Date: Jun 2020
Location: Essex
Posts: 345
Purfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to beholdPurfleet is a splendid one to behold
Default

How about somthing like this?


Code:
Sub MoveColours()

Worksheets("Sheet1").Range("a1").CurrentRegion.Copy

Worksheets.Add.Name = "Output"

Worksheets("Output").Range("a1").PasteSpecial xlPasteAll

Range("a1").AutoFilter Field:=1, Operator:=xlFilterNoFill

Application.DisplayAlerts = False
    Range("a1").CurrentRegion.Offset(1, 0).SpecialCells(xlCellTypeVisible).Delete
Application.DisplayAlerts = True

ActiveSheet.AutoFilterMode = False

End Sub
Reply With Quote