OK, where would I put that then++
Sub ActionSearch()
'Search for word
On Error Resume Next
Dim lCol As Long
Dim lRow As Long
Dim dlgOpen As FileDialog
Set dlgOpen = Application.FileDialog(msoFileDialogFilePicker)
dlgOpen.AllowMultiSelect = False
dlgOpen.Filters.Add "*.*", 1
dlgOpen.Title = "Select Dictionary"
dlgOpen.Show
Dim strFileName As String
Err.Clear
strFileName = dlgOpen.SelectedItems(1)
If Err.Number <> 0 Then Exit Sub
If Dir(strFileName) = "" Then Exit Sub
If UCase(Trim(Right(strFileName, 3))) <> UCase("xls") Then Exit Sub
Err.Clear
Set appObject = GetObject("Excel.Application")
If Err.Number <> 0 Then
Set appObject = CreateObject("Excel.Application")
End If
Set wbObject = appObject.Workbooks.Open(strFileName)
Set wsObject = wbObject.sheets("sheet1.")
Dim strTemp1 As String
Dim strTemp2 As String
lRow = 1
Do
strTemp1 = wsObject.Cells(lRow, 2)
If Trim(strTemp1) = "" Then Exit Do
Call FindWord(strTemp1)
lRow = lRow + 1
Loop
MsgBox "Completed"
End Sub
Sub FindWord(ByVal strFindWord As String)
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
Options.DefaultHighlightColorIndex = wdYellow
Application.ScreenUpdating = False
With Selection.Find
.Text = strFindWord
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Highlight = False
.Replacement.Highlight = True
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub