Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default sorting code problems


Here's what I got, and needless to say attributing to my extreme lack o
experience its not working. any suggestions?

Dim rng As Range, sStr As String, i As Long
Set rng = Cells(A, 65536).End(xlToLeft)
For i = rng.Row To 1 Step -1
sStr = LCase(Cells(1, i).Value)
If sStr < "26" Then
Cells(A, i).EntireRow.Delete
End If
Nex

--
DK
-----------------------------------------------------------------------
DKY's Profile: http://www.excelforum.com/member.php...fo&userid=1451
View this thread: http://www.excelforum.com/showthread.php?threadid=26315

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default sorting code problems

I think this wil work for you (different approach):

Dim RowNo as Long

RowNo = Range("A1").CurrentRegion.Rows.Count
While RowNo 0
With Range("A" & RowNo)
If LCase(.Value) < "26" Then .EntireRow.Delete
End With
RowNo = RowNo - 1
Wend

-----Original Message-----

Here's what I got, and needless to say attributing to my

extreme lack of
experience its not working. any suggestions?

Dim rng As Range, sStr As String, i As Long
Set rng = Cells(A, 65536).End(xlToLeft)
For i = rng.Row To 1 Step -1
sStr = LCase(Cells(1, i).Value)
If sStr < "26" Then
Cells(A, i).EntireRow.Delete
End If
Next


--
DKY
----------------------------------------------------------

--------------
DKY's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=14515
View this thread:

http://www.excelforum.com/showthread...hreadid=263154

.

Reply
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
sorting code problems DKY[_14_] Excel Programming 0 September 24th 04 04:37 PM
sorting code problems DKY[_13_] Excel Programming 0 September 24th 04 04:28 PM
sorting code problems DKY[_12_] Excel Programming 0 September 24th 04 03:17 PM
sorting code problems DKY[_11_] Excel Programming 1 September 24th 04 03:06 PM
sorting code problems DKY[_10_] Excel Programming 2 September 24th 04 02:34 PM


All times are GMT +1. The time now is 03:53 AM.

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

About Us

"It's about Microsoft Excel"