+ Reply to Thread
Results 1 to 6 of 6

Need a Macro to delete all rows containing values less than or equal 300 in column A

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    3

    Need a Macro to delete all rows containing values less than or equal 300 in column A

    Need a Macro to delete all rows containing values less than or equal 300 in column A

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Need a Macro to delete all rows containing values less than or equal 300 in column A

    Please Login or Register  to view this content.
    Begins with p and ends in lease.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    06-04-2014
    Posts
    3

    Re: Need a Macro to delete all rows containing values less than or equal 300 in column A

    Thanks for your code. It worked but if the cell value in the column is blank or some characters then it does not work. Furthermore, would you please give me a code to delete "FALSE" or "TRUE" in the first column? I tried putting the "FALSE" in place of 300 in your coding but did not work. Need your help please.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Need a Macro to delete all rows containing values less than or equal 300 in column A

    You could try this:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    06-04-2014
    Posts
    3

    Re: Need a Macro to delete all rows containing values less than or equal 300 in column A

    Hi Alan,

    Thanks so much. It worked, but I have to run the macro several times. It is a worksheet of more than 3500 rows. Can you please tell me how to get this done by one attempt of this macro run please?

    Thanks

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Need a Macro to delete all rows containing values less than or equal 300 in column A

    Need to loop through the range backwards.

    Option Explicit

    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. VB Macro - Sorty by column Delete rows containing Values
    By haleakala17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2014, 04:21 PM
  2. [SOLVED] macro to find same largest values in a column and delete all other rows..help required!!
    By gokzee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2012, 11:34 PM
  3. Replies: 3
    Last Post: 10-23-2012, 09:06 PM
  4. [SOLVED] Delete Row if Column is not equal to multiple values
    By Andrew.Trevayne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2012, 10:41 PM
  5. Delete Rows Column F if greater than or equal to zero.
    By EJensen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2009, 10:06 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