I am using a workbook as a sample log database with 9 fields. After a sample ships, I want to retrieve the entry to another sheet called Request, modify it, and then copy it back onto the original. I need to search column A of the sheet Sample Log! using the sample number stored in Request!A9. In another application, I have used the following code to search a specific range for specific text:
Dim ColRange As Long
ColRange = Range("N21:N" & Range("N200").End(xlUp).Row).Find(What:="CLOSED", LookIn:=xlFormulas, LookAt:=xlWhole).Row
Range("A" & ColRange & ":I" & ColRange).Copy
But since this will continue to grow larger over time, I need to search the entire column A of the sheet Sample Log, and I want to search for the sample number which will be a user entry in Request!A9 instead of the fixed text "CLOSED".
Any help would be appreciated.
Dim ColRange As Long
ColRange = Range("N21:N" & Range("N200").End(xlUp).Row).Find(What:="CLOSED", LookIn:=xlFormulas, LookAt:=xlWhole).Row
Range("A" & ColRange & ":I" & ColRange).Copy
But since this will continue to grow larger over time, I need to search the entire column A of the sheet Sample Log, and I want to search for the sample number which will be a user entry in Request!A9 instead of the fixed text "CLOSED".
Any help would be appreciated.