+ Reply to Thread
Results 1 to 4 of 4

Simple delete entirerow if value vba not working....

  1. #1
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Simple delete entirerow if value vba not working....

    Hi All,
    Can someone tell me what is going wrong here.
    This is part of the code not working:
    Please Login or Register  to view this content.
    I attached a simple small file which after sort has some redundant double lines and or subtotals I want to filter out.
    I thought a simple loop going thru all the lines and find the word "Week" or "Sum:" would do the trick but no.
    So now in the first column I have a formula putting an "X" for the lines that need to be deleted.
    That it does fine...but then this code will not delete all the lines....but some of them it does delete....
    Why? Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Simple delete entirerow if value vba not working....

    Change this

    Please Login or Register  to view this content.
    To

    Please Login or Register  to view this content.
    Because deleting the entire row should be done from the bottom to top.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Re: Simple delete entirerow if value vba not working....

    My god...worked like a charm. Never knew this also never had this problem with delete rows.
    But thank you very very much, thought I was losing it....seemed so simple.
    Much appreciated sixthsense!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Simple delete entirerow if value vba not working....

    Glad it helps you and thanks for the feedback

+ 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. CurrentRegion.EntireRow.Delete (+ the next row)
    By BBoydAnchor in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-28-2011, 04:16 PM
  2. [SOLVED] delete entirerow if date more than 12months old
    By flow23 in forum Excel General
    Replies: 1
    Last Post: 05-25-2006, 10:35 AM
  3. How to fix cell.entirerow.delete?
    By guy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2005, 11:06 PM
  4. [SOLVED] EntireRow.Delete
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-21-2005, 07:06 PM
  5. EntireRow.Delete Not what I want
    By spencermjax in forum Excel General
    Replies: 1
    Last Post: 01-14-2005, 11:40 PM

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