LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Find macro on columns A,B and C.

I have an Excel 2003 spreadsheet with Lastname Firstname and Teamname as
columns A-C. The sheet is sorted on these three columns in the order stated.
Columns D thru T contain other teamnames played.

I am writing a macro that put's up an InputBox requesting the user to enter
a Lastname, Firstname, Teamname separated by commas such as:
Lastname2,Jill,Team1 to find the row for "Jill Lastname2".

I used the macro recorder to create a macro that does a Find on Col A then B
then C. Problem is, when I find the Lastname in Col A then select Column B
and issue a Find command for the Firstname, the Find starts from the top of
column B when I want it to begin with the row that contained the lastname
successfully found in column A. There is an After: property associated with
the Find command but I don't know how to assign the row number where the
lastname was found to that After: property.


Sample Data

Lastname1 Jill Team1
Lastname2 Jill Team1
Lastname2 Mary Team1

When I enter "Lastname2,Jill,Team1" the first Find in my macro successfully
finds row 2, but the next Find stops at the Jill name in Column B identifying
the wrong row.

Any and all help is appreciated.

Jack
 
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
Find & Replace and Find & Insert macro help needed RS Excel Programming 2 January 29th 07 07:35 AM
Macro to find columns to hide Dean[_8_] Excel Programming 8 June 14th 06 03:58 AM
Looping macro needed to find intersections of rows and columns Clifford Middleton Excel Programming 1 January 5th 06 01:04 PM
I need to find a macro to find data cut and paste to another colu. Rex Excel Programming 6 December 7th 04 09:22 AM
find and delete duplicate entries in two columns or find and prin. campare 2 columns of numbers-find unique Excel Programming 1 November 24th 04 04:09 PM


All times are GMT +1. The time now is 07:00 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"