+ Reply to Thread
Results 1 to 2 of 2

Deleting a row is crieteria met.

  1. #1
    Forum Contributor
    Join Date
    12-05-2006
    Location
    London
    MS-Off Ver
    Excel 365 (Version 2008) [work] & 365 [home]
    Posts
    182

    Deleting a row is crieteria met.

    Hi all,

    I have this snippet of code


    Code:
    Option Explicit

    Please Login or Register  to view this content.
    End SubI wish to add it to this macro:
    Please Login or Register  to view this content.
    What I am trying to achive is that once the main part of the macro is executed I want all the rows that have a value of <100 in the column "J" to have the row deleted.

    So two questions:

    1.Will the snippet to delete rows work?
    2.I have added into the macro code where I think it should go, is this right?


    Thanks for any help that you guys can give in advance.
    A mad football researcher and Statistician - ok just mad really !

  2. #2
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Deleting a row is crieteria met.

    Remove the quotes in this line in your DeleteRows sub
    Please Login or Register  to view this content.
    You could put the code as indicated (but without the Sub/End Sub).
    I think I would leave it as a subroutine and call it from your main code so just insert

    Please Login or Register  to view this content.
    If this was helpful then please click the small star icon at the bottom left of my post. A little appreciation goes a long way.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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