J
Jason
I'm sure there is a simple solution to this, but can't
figure it out. I am getting a type mismatch error (run
time error '13') in the following code. Can anyone tell
me what's causing this and how to fix it. Thanks.
Sub Test1()
Dim A As String, B As String, C As String, D As String
A = "Sales": B = "COGS": C = "Gross Margin": D = "Net
Income"
If ActiveCell.Offset(-1, 0).Value = A Or B Or C Or D And _
ActiveCell.Offset(1, 0).Value = A Or B Or C Or D Then
ActiveCell.EntireRow.Select
Selection.Delete Shift:=xlUp
ActiveCell.Offset(-1, 0).Select
End Sub
figure it out. I am getting a type mismatch error (run
time error '13') in the following code. Can anyone tell
me what's causing this and how to fix it. Thanks.
Sub Test1()
Dim A As String, B As String, C As String, D As String
A = "Sales": B = "COGS": C = "Gross Margin": D = "Net
Income"
If ActiveCell.Offset(-1, 0).Value = A Or B Or C Or D And _
ActiveCell.Offset(1, 0).Value = A Or B Or C Or D Then
ActiveCell.EntireRow.Select
Selection.Delete Shift:=xlUp
ActiveCell.Offset(-1, 0).Select
End Sub