Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Brad
The After argument takes a range argument, so Set rngBottomZero = rngRacf.Find( What:="0000", _ After:=Worksheets("Inquries").Range(strMaxRange), _ LookIn:=xlValues, _ SearchDirection:=xlPrevious) should work. -- Dick Kusleika MVP - Excel www.dicks-clicks.com Post all replies to the newsgroup. "Brad" wrote in message ... Good afternoon, I'm completely stumped here. What I need is to find a certain value, by searching from the bottom of the spreadsheet in a single column. Then take that cell location of where the value is found, and cut (from cut and paste) columns A - G and paste them in another worksheet that I created. Set rngRacf = Worksheets("Inquiries").Range("C2:" & strMaxRange) Set rngBottomZero = rngRacf.Find( What:="0000", _ After:=strMaxRange, _ LookIn:=xlValues, _ SearchDirection:=xlPrevious) strMaxRange is the second to last cell value that has data. Assuming that the "After" designation will begin the search in the very last cell, searching backwards for an instance of the value "0000" that I'm searching for. I want rngBottomZero to have the cell location where the criteria is found. If I just use a variant "BottomZero" the data that I get back is just the "0000" value it searched for. In this particular code I receive "Unable to get the Find property of the range class." Which is even more confusing to me because I thought Find was a method, not a property. But I'm not sure how to designate it otherwise. I'm numb from troubleshooting and I'm getting nowhere. Any help would be greatly appreciated. -Brad |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Set range with Find method | Excel Discussion (Misc queries) | |||
Find Method problem in Excel VBA.... | Excel Worksheet Functions | |||
Please post this thread a complete correct method, method about te | New Users to Excel | |||
How do you find the method of selected points? | Setting up and Configuration of Excel | |||
How to find method to cut steel coil by using excel. | Excel Worksheet Functions |