+ Reply to Thread
Results 1 to 6 of 6

Delete entire row if any cell is greater than 25k

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    56

    Delete entire row if any cell is greater than 25k

    I have report that i need to delete the entire row where colum "AJ" has number between 0 to positive 24,9999 and 0 to negatize (24,999)

    Can you help me with the code.. No idea where to start

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,190

    Re: Delete entire row if any cell is greater than 25k

    Please Login or Register  to view this content.

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Delete entire row if any cell is greater than 25k

    Hi, buwa,

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    05-09-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: Delete entire row if any cell is greater than 25k

    Thanks getting back so fast... This macro though runs forever.. i have to force stop it

  5. #5
    Registered User
    Join Date
    05-09-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: Delete entire row if any cell is greater than 25k

    This should be "Const cdblPASS As Double = 24.999" 24999 correct.. not 24.999... also this macro seems to run forever. i had to force stop it




    Quote Originally Posted by HaHoBe View Post
    Hi, buwa,

    Please Login or Register  to view this content.
    Ciao,
    Holger

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Delete entire row if any cell is greater than 25k

    Hi, buwa84,

    This should be "Const cdblPASS As Double = 24.999" 24999 correct
    Quote Originally Posted by OP
    24,9999
    Simpla as that.

    Anything to tell us about length of Column or number of rows, formulas in the worksheet, Events behind the sheet?

    Please Login or Register  to view this content.
    Ciao,
    Holger

+ 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. Copy/Paste entire colum when a cell is greater then X
    By Orbital_Jesse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2014, 09:17 PM
  2. [SOLVED] Delete cell only with certain critria. Don't want to delete entire row, the celsl only
    By RobertOHare in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2013, 04:18 AM
  3. Delete row if row if cell value is greater than value of next row
    By bikefan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2013, 04:10 AM
  4. If cell length greater than 7 then delete 3rd character
    By Rabbitstew in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-20-2012, 10:42 AM
  5. Delete entire row when cell says delete
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-27-2007, 11:46 AM

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