A macro to cross reference what the user enters with what is in Storage is not too complex.
How do you plan to trigger the macro? Worksheet_Change event?
Sub CheckStorage()
Dim ukey As String
Dim anchor As Range
Dim rng As Range
Dim c As Range
Set anchor = Range("B2")
ukey = anchor.Offset(0) & anchor.Offset(1) & anchor.Offset(2) & CLng(anchor.Offset(3)) ' Build the search key
Set rng = Sheets("Storage").Columns("O:O") ' Define where to search
Set c = rng.Find(what:=ukey, LookIn:=xlValues, lookat:=xlWhole) ' Check for a match
If Not c Is Nothing Then ' Do whatever you want if a match is made
' code to populate datasheet goes here
End If
End Sub
Regards, AB
Bookmarks