+ Reply to Thread
Results 1 to 4 of 4

Delete rows Macro

  1. #1
    Registered User
    Join Date
    10-02-2008
    Location
    Salt Lake
    Posts
    3

    Delete rows Macro

    I have a huge spreadsheet that I want to be able to sort through and delete the unwanted rows. I want to do a search for anything in column C that equals 2225 including the next row after and delete the rest. Here is an example.

    A B C D
    1 ac dfe 2225 55
    2 ac esf 1232 32
    3 fg we 3454 25
    4 is po 2225 12
    5 is esf 7584 32
    6 fg we 7480 25

    I want to keep all rows that contain 2225 in Column C, including the next row. So I want a macro to go through and keep rows 1, 2, 4, 5 and delete 3 and 6.
    Last edited by dragmac; 10-02-2008 at 03:06 PM.

  2. #2
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862
    Please Login or Register  to view this content.
    MatrixMan.
    --------------------------------------
    If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
    If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.

  4. #4
    Registered User
    Join Date
    10-02-2008
    Location
    Salt Lake
    Posts
    3
    Thanks for the help. That was exactly what I was looking for.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to Compare to Cells and Delete Row
    By randolphoralph in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2008, 04:33 PM
  2. macro to delete one character in a cell
    By NewsyL in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-11-2007, 03:35 PM
  3. conditional row delete and autofilter
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2007, 12:34 AM
  4. Delete Rows & Column Per Conditions....
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2007, 09:02 PM
  5. Delete function - Double (Same Information) Rows
    By SilverShadow in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 06-04-2007, 05:43 AM

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