+ Reply to Thread
Results 1 to 5 of 5

Automating reading a cell's value & deleting its entire row if value true

  1. #1
    Registered User
    Join Date
    07-12-2008
    Location
    Michigan
    Posts
    2

    Automating reading a cell's value & deleting its entire row if value true

    Each morning I receive a 5000 row employee database download with approx. 20 columns of employee data. One of these columns is the Employee's Code - a letter followed by two numbers. Right now I'm manually sorting that Employee Code column A-Z and then highlighting and deleting all the rows of employees who have a D or R codes. There are 20 some different numbers in each code (D05, D22, R18, R20, etc.). Is it possible to automate this process? I'd like to set it up with a wildcard symbol or an * or something that would identify and completely delete every row containing a D or R (or whatever letter I choose) in the Employee Code column cells. Hopefully there is a fairly simple way to do this that I'm not seeing... I am using Excel 2007. Fairly good with macros, my VBA skills are at the dummy level - but I'm a fast learner and don't easily give up. Thank you in advance.

  2. #2
    Forum Contributor
    Join Date
    10-01-2007
    Posts
    101
    im a beginner but im doing a little searching. i think the correct trail for this problem is the ISLIKE function.

  3. #3
    Forum Contributor
    Join Date
    10-01-2007
    Posts
    101
    this may help

    http://www.ozgrid.com/forum/showthread.php?t=17869

  4. #4
    Forum Contributor SOS's Avatar
    Join Date
    01-26-2004
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    327
    Hi CedarLake23,

    A possible VBA solution

    Please Login or Register  to view this content.
    The above assumes that your Employee ID is in Column B. Change the line

    Please Login or Register  to view this content.
    to whatever column you IDs are in
    Hope this helps

    Seamus

  5. #5
    Registered User
    Join Date
    07-12-2008
    Location
    Michigan
    Posts
    2

    Re: Automating reading a cell's....

    Your code worked great Seamus... Thank you.

+ 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