Trying to look at an offset value in my sheet when searching a column and find text in that offset location and if it matches then do an substitute operation on the current cell
Sub GoDaddy_Change_Taxable_to_Nontaxable_for_Services()
Dim cell As Range
Dim Offset As Range
Dim Find As Boolean
' Parse the offset GoDaddy Category for Training, Warranty or Service and Replace Taxable with No if matched
For Each cell In Selection
If Not IsEmpty(cell.Value) Then
If cell.Offset(0, -15).cell.find("Train" Or "Service" Or "Warrant", xlValues, xlPart, False) = True Then
cell.Value = WorksheetFunction.Substitute(cell, cell.Value, "No")
Else
End If
End If
Next cell
End Sub
for some reason though it's not offsetting and it's giving me a type mismatch at the red line.
Sub GoDaddy_Change_Taxable_to_Nontaxable_for_Services()
Dim cell As Range
Dim Offset As Range
Dim Find As Boolean
' Parse the offset GoDaddy Category for Training, Warranty or Service and Replace Taxable with No if matched
For Each cell In Selection
If Not IsEmpty(cell.Value) Then
If cell.Offset(0, -15).cell.find("Train" Or "Service" Or "Warrant", xlValues, xlPart, False) = True Then
cell.Value = WorksheetFunction.Substitute(cell, cell.Value, "No")
Else
End If
End If
Next cell
End Sub
for some reason though it's not offsetting and it's giving me a type mismatch at the red line.