LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Filter out rows of information in a list via VBA

Bit of a mis-read on my part.

Try this revised version.

Option Compare Text
Sub Delete_NonU_Rows()
Dim iRow As Long
Dim FirstRow As Long
Dim LastRow As Long
FirstRow = 1
LastRow = Cells(Rows.Count, "B").End(xlUp).Row
For iRow = LastRow To FirstRow Step -1
If Left(Cells(iRow, "B").Value, 1) < "U" Then
Rows(iRow).EntireRow.Delete
End If
Next
End Sub


Gord

On Tue, 26 Jan 2010 02:54:01 -0800, James C
wrote:

Thank you for your response.

I am have copied and pasted your suggestion into my current macro and am
having no luck with it working. It comes up with an error message End If
Without Block If.

Tried your macro in a new workbook and it appeasr to hide or delete U codes
leaving the codes that I do not require.

Can you help further?

thanks


 
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
information filter scott Excel Discussion (Misc queries) 3 August 25th 08 11:34 PM
Fill in rows with Information from Drop Down list ChristyL Excel Worksheet Functions 0 August 11th 08 05:20 PM
how do i filter a list greater than 1000 rows kambara1 Excel Discussion (Misc queries) 1 April 29th 08 09:11 AM
filter: how to print filter list options in dropdown box help please Excel Discussion (Misc queries) 2 October 17th 07 01:53 AM
filter and keep same information. WellsDesign Excel Worksheet Functions 3 March 25th 05 01:36 AM


All times are GMT +1. The time now is 07:12 PM.

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"