Unable to get FIND to work with a formula cell containing text and locate the result on a sheet within a range.
I have created a button that when clicked should look at a cell, take the data and then search for the result in a column on a different sheet using exact match.
D11 holds a formula that returns a vlookup text result When i press the button i do the following
Sub Button3_Click()
Dim strSearch As String
Dim rng As Range
Dim rng1 As Range
Dim ws As Worksheet
Dim wb As Workbook
Set wb = Application.ActiveWorkbook
Set ws = wb.Worksheets("Auspost_Data")
strSearch = Worksheets("Report_Tool").Range("D11")
wb.ws.Range("D:D").Select
Selection.Find(strSearch)
End Sub
I expect the find to take the text value and find the exact match within the column range.
Range.Find
has some additional parameters that you'll want to specify: LookIn and LookAt – BigBenWhat:=strSearch, LookIn:=xlValues, LookAt:=xlWhole
. – BigBen