+ Reply to Thread
Results 1 to 2 of 2

Delete Row Macro - if cell > $5000

  1. #1
    Danny
    Guest

    Delete Row Macro - if cell > $5000

    Hi,

    How do I delete a rows in Column F if a cell reflects a value of more than
    $5,000.

    Thanks

  2. #2
    Chip Pearson
    Guest

    Re: Delete Row Macro - if cell > $5000

    You can do it with a VBA macro:

    Sub AAA()
    Dim LastRow As Long
    Dim RowNdx As Long
    LastRow = Cells(Rows.Count, "F").End(xlUp).Row
    For RowNdx = LastRow To 1 Step -1
    If Cells(RowNdx, "F").Value > 5000 Then
    Rows(RowNdx).Delete
    End If
    Next RowNdx
    End Sub



    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "Danny" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > How do I delete a rows in Column F if a cell reflects a value
    > of more than
    > $5,000.
    >
    > Thanks




+ 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