ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Usenet Groups > Excel 2007 Help

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-29-2008, 05:46 PM
qj67 qj67 is offline
Registered User
 
Join Date: 02 Jul 2008
Location: Portland, Or.
Posts: 13
qj67 is on a distinguished road
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.
Reply With Quote
  #2  
Old 07-29-2008, 10:52 PM
pjoaquin's Avatar
pjoaquin pjoaquin is offline
Forum Moderator
 
Join Date: 05 Feb 2007
Location: Wisconsin, U.S.A.
Posts: 2,328
pjoaquin will become famous soon enough pjoaquin will become famous soon enough
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?
__________________
- Paul

Click here to read the Forum Rules

Reply With Quote
  #3  
Old 07-30-2008, 12:15 PM
qj67 qj67 is offline
Registered User
 
Join Date: 02 Jul 2008
Location: Portland, Or.
Posts: 13
qj67 is on a distinguished road
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.
Reply With Quote
  #4  
Old 07-30-2008, 12:29 PM
qj67 qj67 is offline
Registered User
 
Join Date: 02 Jul 2008
Location: Portland, Or.
Posts: 13
qj67 is on a distinguished road
I dont know if it makes any difference but the file is in a csv formatt
Reply With Quote
Reply

Bookmarks

New topics in Excel 2007 Help


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -4. The time now is 12:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0