I am trying to find the data in excel using word vba. Problem is it shows an run time error in find line.
Error number = 13
Error = Type mismatch
dim rcell as range
Dim wb As Excel.Application
Set wb = New Excel.Application
wb.Workbooks.Open (fullnameofxls)
wb.activeworkbook.Activate
Set rCell = Cells.Find(What:=find_text, After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False)
If rCell Is Nothing Then
MsgBox "Data Missing"
End If