+ Reply to Thread
Results 1 to 4 of 4

Delete Table Rows

  1. #1
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    286

    Delete Table Rows

    I have a table (tblSum) in a worksheet (Summary). In column D of the table is a field list "Type".
    I wish to delete all rows in the table that have "Near Miss" in the "Type" column. The code below is not working.
    Any help would be appreciated. Thanks Sandy.

    Please Login or Register  to view this content.

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

    Re: Delete Table Rows

    Hi !

    Activate the Macro Recorder then use a filter of the table for "Near Miss" then right click and delete rows :
    you will get your own free base of code !
    In case of a need for optimization, post the generated code here via the appropriate icon …

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Delete Table Rows

    Try this:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    286

    Re: Delete Table Rows

    Thanks Guys. Olly I used you code and it worked great. Cheers Sandy

+ 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] Delete table rows in multiple table is specific range
    By 3345james in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2017, 08:32 AM
  2. [SOLVED] Clear n Delete Table Rows
    By kprabhupaul in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-08-2016, 04:46 AM
  3. [SOLVED] Can you delete filtered rows in a table?
    By Butcher1 in forum Excel General
    Replies: 2
    Last Post: 02-25-2015, 01:01 PM
  4. Delete some rows in a table
    By a1b2c3d4e5f6g7 in forum Excel General
    Replies: 4
    Last Post: 01-28-2015, 10:56 AM
  5. [SOLVED] Go To Last Used Row of Table, Delete all empty rows below it.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-03-2014, 04:00 PM
  6. how to delete rows in a table in excel
    By mahi4tech in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2013, 10:55 AM
  7. Delete Only Visible Rows in Table
    By djblois1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2011, 03:57 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