ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   remove duplicates (https://www.excelbanter.com/excel-programming/442329-remove-duplicates.html)

asol

remove duplicates
 
hi all

i have in raw A phone list in raw B we have customer that ask to be removed
from call list
what can i do to have clean list in raw C

ryguy7272

remove duplicates
 
If you delete those records, they are gone forever. Maybe you just want to
hide them. Put the word 'Hide' in Column C, in the rows of clients that are
not supposed to be called, and run this:
Sub HideRows()
Dim b As Boolean

Set r = ActiveSheet.UsedRange
nLastRow = r.Rows.Count + r.Row - 1

For rr = 1 To nLastRow
b = False
For cl = 3 To Columns.Count
If Cells(rr, cl).Text = "Hide" Then
b = True
End If
Next
If b Then
Cells(rr, 1).EntireRow.Hidden = True
End If
Next
End Sub



--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"asol" wrote:

hi all

i have in raw A phone list in raw B we have customer that ask to be removed
from call list
what can i do to have clean list in raw C



All times are GMT +1. The time now is 12:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com