+ Reply to Thread
Results 1 to 2 of 2

VBA Delete Row If Ciriteria From Multiple Columns are Met

  1. #1
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    VBA Delete Row If Ciriteria From Multiple Columns are Met

    Hi, I wonder whether someone could help me please.

    I'm trying to create a short script which performs the following:

    • Searches for a specific name in column C on my "Resource List" sheet, then
    • When this is found, check column H to see if this is populated,
    • Then when both criteria are met delete the entire row.

    Using a link I found herehttp://www.ozgrid.com/forum/showthread.php?t=64364, I've put together the code below:

    Please Login or Register  to view this content.
    The problem I have is that although the criteria are being met the row is not being deleted.

    I just wonderd whether someone may be able to look at this please and let me know where I'm going wrong.

    Many thanks and kind regards

    Chris
    Last edited by hobbiton73; 08-19-2014 at 01:58 AM.

  2. #2
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Delete Row If Ciriteria From Multiple Columns are Met

    ***UPDATE***

    All, thank you for taking the time to look at my post.

    I just wanted to let you know I now have this working.

    This row For iLoop = Last_Row To 1 Step -1 should have been For iLoop = LastRow To 1 Step -1 and I had column H as column 7 when it should have been column 8.

    Many thanks and kind regards

    Chris

+ 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. Delete row if multiple columns empty
    By amadman114 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2013, 06:53 AM
  2. Replies: 9
    Last Post: 12-20-2012, 10:29 AM
  3. [SOLVED] Delete multiple empty cells in multiple columns and moving data up, witout Macros
    By CoraF in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2012, 08:23 AM
  4. Delete multiple columns by column name no criteria need, just delete them
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2009, 10:40 AM
  5. average with mulitple ciriteria
    By ellebelle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2006, 03:00 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