So what if I needed to only hide the duplicate rows temproarily?Originally Posted by VBA Noob
So what if I needed to only hide the duplicate rows temproarily?Originally Posted by VBA Noob
Try
Option Explicit Sub DeleteDups() Dim x As Long Dim LastRow As Long LastRow = Range("B65536").End(xlUp).Row For x = LastRow To 1 Step -1 If Application.WorksheetFunction.CountIf(Range("B1:B" & x), Range("B" & x).Text) > 1 Then Range("B" & x).EntireRow.Hidden = True End If Next x End Sub
VBA Noob
_________________________________________
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
Originally Posted by VBA Noob
Works like a charm! thanks a million!
No problem.
Glad I could help.
PS. Please read forum rules below and remember to start your own thread
VBA Noob
I did, or at least i thought i did. what other thread did i steal, and how did i manage to do so?Originally Posted by VBA Noob
You replied to a thread on how to delete rows.
VBA NoobSo what if I needed to only hide the duplicate rows temproarily?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks