Hi Community,
The following code works perfectly for returning a single row that meets a specific value, but if there are numerous rows that meet the given condition in range A:A it only returns the first row, and not any additional rows that meet the given value. Any guidance here.
The following code works perfectly for returning a single row that meets a specific value, but if there are numerous rows that meet the given condition in range A:A it only returns the first row, and not any additional rows that meet the given value. Any guidance here.
Code:
[COLOR=#333333][COLOR=#333333]Private Sub Worksheet_Change(ByVal Target As Range)[/COLOR][/COLOR][COLOR=#333333] Dim Fnd As Range[/COLOR] If Target.CountLarge > 1 Then Exit Sub
If Target.Address(0, 0) = "B24" Then
Set Fnd = Sheets("Data").Range("A:A").Find(Target.Value, , , xlWhole, , , False, , False)
If Not Fnd Is Nothing Then
Range("A30:X30").Value = Fnd.Resize(, 25).Value
Else
MsgBox "Not found"
End If [COLOR=#333333] End If [/COLOR][COLOR=#333333][COLOR=#333333]End Sub[/COLOR][/COLOR]