|
|||||||||||||||||||||
|
#1
|
|||
|
|||
|
How do I scrub a list of phone numbers
I have in column A a list of numbers that are on the DNC list and a list of numbers that I want to call in column B. I want to scrub column B using column A... any suggestions?
I did do a search on this forum and found a macro but whenever I try to use it (I have 07) it freezes and I have to restart excel, can anybody help me? Last edited by VBA Noob; 07-29-2008 at 05:50 PM. |
|
#2
|
||||
|
||||
|
Hi qj67,
What format are your phone numbers in? Are all numbers formatted the same? What code are you currently using that is causing you problems? |
|
#3
|
|||
|
|||
|
I have the numbers all in the same format (1234567890) and the macro I'm using is
Code:
Sub RemoveDuplicatesInCells()
Dim c As Range
Dim rCheckForDupes As Range
Set rCheckForDupes = Range("A:B")
With rCheckForDupes
For Each c In .Columns(2).Cells
If WorksheetFunction.CountIf(.Columns(1), c.Value) > 0 Then
c.ClearContents
End If
Next c
.Columns(2).SpecialCells(xlCellTypeBlanks).Select
Selection.Delete Shift:=xlUp
.Cells(1).Select
End With
Set rCheckForDupes = Nothing
End Sub
Last edited by Simon Lloyd; 07-30-2008 at 02:30 PM. |
![]() |
| Bookmarks |
New topics in Excel 2007 Help
|
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|