+ Reply to Thread
Results 1 to 5 of 5

Filtr and delete Rows Between 2 times

  1. #1
    Registered User
    Join Date
    09-03-2018
    Location
    wolverhampton
    MS-Off Ver
    windows 7
    Posts
    33

    Filtr and delete Rows Between 2 times

    HI Guys

    I already have a VBA for some of work,
    basically

    It copies the sheet to a new tab, Renames it an then removes all rows tat has a "c" It also Adds a new column an calculates the cycle time
    I would now if possible delete all rows that are less than '00:10:00' and greater than '02:00:00'
    My column however is all calculated by formula.

    HTML Code: 

  2. #2
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Filtr and delete Rows Between 2 times

    Try changing your code to;

    Please Login or Register  to view this content.
    Remove the "=" if 00:10:00 and 02:00:00 are actually allowed
    Last edited by PaulSP8; 11-30-2018 at 05:32 AM.

  3. #3
    Registered User
    Join Date
    09-03-2018
    Location
    wolverhampton
    MS-Off Ver
    windows 7
    Posts
    33

    Re: Filtr and delete Rows Between 2 times

    Thanks for this

    However currently my code removes the rows that contain anything with "C" in column C before adding the new column (I) and then calculating the times in this column,

    Column I is the column I need to delete the row fro between these time

    Thank you

  4. #4
    Registered User
    Join Date
    09-03-2018
    Location
    wolverhampton
    MS-Off Ver
    windows 7
    Posts
    33

    Re: Filtr and delete Rows Between 2 times

    Totally get this version now, thank you worked a Treat.
    Totally make sense to ad the columns and workings a then delete everthing I don't need after
    Thank you much for your quick help.

  5. #5
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Filtr and delete Rows Between 2 times

    Quote Originally Posted by saram1989 View Post
    However currently my code removes the rows that contain anything with "C" in column C before adding the new column (I) and then calculating the times in this column,
    I caught that and amended the code it do Col I before the loop, does it work now?

    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. Rows delete formula as per range of cell values with counter to delete # rows
    By qureshi2016 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-03-2017, 09:35 AM
  2. Replies: 8
    Last Post: 11-30-2017, 07:21 AM
  3. Compare dates and times and delete rows
    By maym in forum Excel Programming / VBA / Macros
    Replies: 77
    Last Post: 10-02-2017, 02:34 AM
  4. [SOLVED] Check dates, compare times and then delete rows
    By Estefanus in forum Excel General
    Replies: 3
    Last Post: 08-17-2016, 08:59 AM
  5. If a search term can be found 1 time, 2 times 3 times 4 times 5 times
    By excelcandy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2013, 09:57 PM
  6. delete rows containing old dates/times
    By mattmac in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-01-2009, 11:08 AM
  7. Delete rows listed less than 8 times???
    By anilos81 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-10-2005, 12:29 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