Hi,
We have a file in that we have large data and we required a vba who can check
If F2<=500 then delete entire row
help pls
Hi,
We have a file in that we have large data and we required a vba who can check
If F2<=500 then delete entire row
help pls
Here is one way using a loop.
If you have LOTS of rows of data then it may be quicker to use different methods such as filtering the data and deleting the visible rows.Please Login or Register to view this content.
BSB
Thanks BadlySpelledBuoy,
its showing the error
run time error '6'
overflow
when we click on debug its goes on
For i = .Cells(Rows.Count, "F").End(xlUp).Row To 2 Step -1
Change "Integer" to "Long" and see if that works.
BSB
Please try
Please Login or Register to view this content.
thanks Bo_Ry
working
You only asked how to delete row 2 which is quite simple
But I assume that you actually want to check each row. Unfortunetly step down while deleting rows will likely lead to missing row that need to be checked.Please Login or Register to view this content.
Thus it is important to to start at the last row, and move UP the sheet.
Please Login or Register to view this content.
If my solution helped, please consider adding Rep
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks