Hello Mpeplow,
Try this version, and let me know what happens. Since I don't have the data you have, this macro hasn't been tested. Use a copy of your workbook to test it.
Revised Macro Code
Sub Find()
Dim ActiveRng As Range
Dim Cell As Range
Dim DataCell As Range
Dim SS As Object
Dim NoSD As Range
Dim SS As Object
Set SS = frmSearch.Spreadsheet1.Sheets("Data")
With SS
Set NoSD = .Range("A2", .Cells(.Rows.Count, "A").End(xlUp))
End With
With ActiveSheet
Set ActiveRng = .Range("C2", .Cells(.Rows.Count, "C").End(xlUp))
End With
For Each DataCell In NoSD
For Each Cell In ActiveRng
If Cell.Value = DataCell.Value Then
With Cell
If frmOptions.chkClear = True Then 'ClearContents
.ClearContents
GoTo NextCheck
End If
If frmOptions.chkDelete = True Then 'Delete
.Delete
GoTo NextCheck
End If
If frmOptions.chkBold = True Then 'Bold
.Font.Bold = True
End If
If frmOptions.chkDeBoldText = True Then
.Font.Bold = False
End If
If frmOptions.chkHighlight = True Then 'Highlight
.Interior.Color = vbYellow
End If
If frmOptions.chkNoFill = True Then
.Interior.Color = xlNone
End If
End With
End If
NextCheck:
Next Cell
Next DataCell
End Sub
Sincerely,
Leith Ross
Bookmarks