Closed Thread
Results 1 to 3 of 3

Find And Delete Row Macro

  1. #1
    Registered User
    Join Date
    10-10-2007
    Posts
    11

    Find And Delete Row Macro

    I am wondering if there is a macro that can find the the cells that contain the word "time" and delete that entire row, and find the word "name and delete the entire row. Any Help would be greatly appreciated Thanks.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try this, it loops through the UsedRange to find cells containing the specified words. Then creates a range by using the Union method. Finally it deletes the rows within that range.
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Find And Delete Row Macro

    This example will populate the listbox with unique values from Column W and delete rows that match your criteria when you select in the ListBox.

    Click on a cell in Column D hat contains GENERAL LEDGER" to display the form
    Attached Files Attached Files

Closed 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