A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
The following code will, I believe, do what you need:
Sub OffsetFound()
Dim I As Long
Dim last As Long
Dim cell As Range
last = Selection.Row + Selection.Count - 1
For Each cell In Selection
With cell
If .Font.Strikethrough = False Then
I = 1
Do
If .Offset(I, 0) = -cell And .Offset(I, 0).Font.Strikethrough = False Then
.Font.Strikethrough = True
.Offset(I, 0).Font.Strikethrough = True
Exit Do
End If
I = I + 1
Loop Until .Offset(I, 0).Row > last
End If
End With
Next cell
End Sub
If this answer solves your problem, please check, Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers Shane Devenshire