+ Reply to Thread
Results 1 to 2 of 2

Macro to delete rows based on criteria, for all sheets in book

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Philadelphia, PA, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Macro to delete rows based on criteria, for all sheets in book

    Good morning all!


    I have about 60 sheets in one book, all with very different names. Each sheet has the same exact list of data.

    I need a macro that will go through each sheet and delete all rows, except for the header, in which the data in column D does not match the sheet name. If possible, can it also delete the row formatting as well so I dont have to go back and do this manually?

    I appreciate any help that can be provided!

  2. #2
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Macro to delete rows based on criteria, for all sheets in book

    Hi,

    See if this helps. Try it in a copy of your workbook since changes cannot be undone.

    Thanks

    Please Login or Register  to view this content.

+ 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. [SOLVED] Macro to delete rows based in the comparative of the columns between two sheets
    By ricdamiani in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-19-2013, 10:37 PM
  2. macro - delete rows based on multiple criteria.
    By ChocksterNo1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-05-2013, 10:22 AM
  3. Macro to delete rows if criteria is referenced in other sheets?
    By jsabo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 02:08 PM
  4. Macro to copy rows based on column criteria to a new sheets
    By Scott821 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2012, 01:55 AM
  5. How can I delete rows based on specific criteria using a macro?
    By akouleze in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2011, 02:49 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