+ Reply to Thread
Results 1 to 2 of 2

deleting rows using vba, based on values in a cell

  1. #1
    Registered User
    Join Date
    07-18-2005
    Posts
    24
    on sheet3 i have a list of names in column a (mike, tom, etc.), i would like to know how you delete the entire row in another sheet if a cell in column p contains one of the names.

    thanks

    on sheet1 i have a list of last names (smith, doe, etc.). on another worksheet i have a bunch on a person in each row. column p contains the last names. what code can i use to delete the rows that contain the same names as listed on sheet1.
    Last edited by VBA Noob; 04-24-2007 at 01:32 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    This assumes:
    1) the names in sheet3 start in row 1
    2) you are in the sheet with the rows to be deleted
    3) row 2 is the last row in the current sheet to be checked.

    Please Login or Register  to view this content.
    HTH

    rylo

+ 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