+ Reply to Thread
Results 1 to 7 of 7

Find the column and delete the rows with value

  1. #1
    Forum Contributor
    Join Date
    05-04-2016
    Location
    London
    MS-Off Ver
    MS Office Excel 2010/2013
    Posts
    354

    Find the column and delete the rows with value

    Hi all,

    Can some one help me with the code that should search for the column " Data Orgin", column "Data orgin" will not be in same place or range everyday .

    and filter the column and delete with the criteria "HRO".

    if no criteria match code should end.

    Thanks .
    Attached Files Attached Files
    Last edited by hudson andrew; 08-26-2019 at 08:34 AM. Reason: added more content

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Find the column and delete the rows with value

    Try:
    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,210

    Re: Find the column and delete the rows with value

    Another Option...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Forum Contributor
    Join Date
    05-04-2016
    Location
    London
    MS-Off Ver
    MS Office Excel 2010/2013
    Posts
    354

    Re: Find the column and delete the rows with value

    Hi Thanks for this , but second method is throwing error " if we dont have HRO

    "Run time error 91"

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,210

    Re: Find the column and delete the rows with value

    No errors for me with your file...See No HRO
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831
    Hi sintek !

    As it's an Excel table - VBA ListObject - it may not need to find the column just using the Excel table syntax …

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,210

    Re: Find the column and delete the rows with value

    Of course...Wasn't thinking Marc L...thanks for the heads up...
    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] Find the first row that does not have data in the cells from column A:L, Delete those rows
    By rcdavis28 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2018, 12:55 PM
  2. code to find rows with same value in column C:F and delete the rows
    By bezbid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2016, 09:52 AM
  3. How to find value in column, then delete multiple rows from that row
    By hadamhiram in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-18-2014, 07:49 AM
  4. [SOLVED] Macro to find a column header and delete certain rows of data
    By robertguy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-17-2013, 02:10 PM
  5. [SOLVED] How to find and delete rows based on criteria within a given column
    By Student1990 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2013, 02:35 PM
  6. Macro to find word in column then delete contents in specified rows
    By Dleopoldi914 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2013, 10:26 AM
  7. Find a value in a column and delete the 10 rows after
    By ExcelJET in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2012, 02:05 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