+ Reply to Thread
Results 1 to 5 of 5

Code to delete rows containing names from a list on another sheet

  1. #1
    Registered User
    Join Date
    01-30-2010
    Location
    Indiana
    MS-Off Ver
    Excel 2003- Still needs to be compatible with Excel 2007
    Posts
    10

    Code to delete rows containing names from a list on another sheet

    Hello,

    I am having trouble with the amount of time it takes to separate unneeded data from a report that I run daily and was wondering if there is any code that may simplify things for me.

    The report I run has many (300 or more) agent names in Sheet 1, Column A and I have to manually remove the unneeded names before continuing with my reporting.

    What I would like to do is utilize code to delete the rows with the unneeded agent names on Sheet 1, Column A from a list of the "unneeded agent names" that I will create on Sheet 2, Column A.

    Any suggestions or information on how I might get this done without the lengthy manual process would be great! Thank you in advance for your advice.

    Eric

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Code to delete rows containing names from a list on another sheet

    Eric - post a workbook please.

  3. #3
    Registered User
    Join Date
    01-30-2010
    Location
    Indiana
    MS-Off Ver
    Excel 2003- Still needs to be compatible with Excel 2007
    Posts
    10

    Re: Code to delete rows containing names from a list on another sheet

    Thank you StephenR, I have attatched an example of the document. Please let me know if any clarification is needed.

    Eric

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Code to delete rows containing names from a list on another sheet

    Not sure, but see if this does what you want:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-30-2010
    Location
    Indiana
    MS-Off Ver
    Excel 2003- Still needs to be compatible with Excel 2007
    Posts
    10

    Re: Code to delete rows containing names from a list on another sheet

    Your code works perfectly StephanR!!! With some small adjustments, this will help me substantialy with other reports that I am responsible for as well.

    Thanks for all the help!!

    Eric

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1