Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with finding values in another workbook

Status
Not open for further replies.

Luis939

MIS
Feb 28, 2003
453
US
I have this code

Set rCell = Workbooks("NortheastArea2003.xls").ActiveSheet.Range("B:B").Find(what:=ActiveCell, LookAt:=xlPart, SearchOrder:=xlColumns)

this searches NortheastArea2003 for the contents of the activecell in the active workbook

then when i find the activecell, i want to conduct another find in NortheastArea2003, not the activeworkbook, how do i do that? i tried

Cells.Find(what:="AT&T", After:=rCell, LookAt:=xlWhole, SearchOrder:=xlByRows).Activate

I dont know why its not working, doesn't rcell already contain the range for where to start looking?? thanks!
 
I believe you need to prefix it with
Workbooks("NortheastArea2003.xls"). just like the first one to ensure that the proper workbook is being searched.

Good LucK!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top