Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

find row

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RobcPettit@yahoo.co.uk - 26 Jan 2006 12:44 GMT
Im  using:

Range(Cells(Range("b:b").find("e0").Row, 1), _
Cells(Range("b:b").find("e1").Row - 1, 1)).Columns("A:z").Select
to select all the rows containing 'EO' then sorting the data with

Selection.Sort Key1:=Range("K3"), Order1:=xlAscending, Header:=xlGuess,
_
     OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
     DataOption1:=xlSortNormal

This all works great if the data is at the beginning of the worksheet,
the problem I have is that I also use the above to select any row with
'e2' in, not a problem selecting just sorting, because the range for
sort can vary from k20 to k30, is the a simple way that when ive
selected the data I can tell what Range the first row starts at. eg if
I could tell it started at A25 I could the trim and put K25 into sort
range. The data to sort is always in the k column, and never mixed up.

Regards Robert
Tom Ogilvy - 26 Jan 2006 13:23 GMT
selection(1).Row

Signature

Regards,
Tom Ogilvy

> Im  using:
>
[quoted text clipped - 16 lines]
>
> Regards Robert
RobcPettit@yahoo.co.uk - 27 Jan 2006 11:46 GMT
thanks tom, easy when you know how
Regards Robert
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.