LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Deleting multiple rows within a spreadsheet

Dim i as long
Dim lastRow as long
lastrow = Cells(rows.count,"F").End(xlup).row
for i = lastrow to 1 step - 1
if lcase(cells(i,"F").Value) = "delete" then
cells(i,"F").EntireRow.Delete
end if
Next

--
Regards,
Tom Ogilvy

"Jeff" wrote in message
om...
Good day all,

I am merging lots of data together from other sheets and i need to
clean it up. i have written a formula so when there is no data that
matches the defined parameters, "delete" is inserted. now i want to
delete the rows that contain "delete" in col "F". how do i do this?

Your help in this matter would be greatly appreciated,

Regards
Jeff Priest



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting excess rows from a spreadsheet TumbleWeed on Platte Excel Discussion (Misc queries) 1 January 2nd 09 04:50 PM
deleting rows in a huge spreadsheet with subtotals ExcelNovice Excel Discussion (Misc queries) 7 December 13th 06 06:59 PM
Excel 2003; spreadsheet with filtering; deleting rows MHcoTech Excel Worksheet Functions 0 September 6th 06 01:33 AM
Deleting multiple rows through a formula mike_vr Excel Discussion (Misc queries) 1 March 15th 05 01:29 PM
deleting multiple rows Pablo Excel Discussion (Misc queries) 4 January 27th 05 07:18 PM


All times are GMT +1. The time now is 09:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"