If am getting an End if without block if compile error. So I know my macro isn't correct but I'm not sure how to fix it. Any help would be appreciated.
Code:
Sub DeleteCells()
'
Dim myNum1 As Double
Dim DCells1 As Byte
Dim DCells2 As Byte
Dim Start As Byte
Dim DLoop1 As Byte
Dim LR As Double
'Enter Starting Row
myNum1 = Application.InputBox("Enter starting row")
LR = myNum1 + 6
If Range("H" & myNum1).Value > 0 Then DCells1 = 1
If DCells1 = 1 Then Range("H" & LR).Value = ""
If DCells1 = 1 Then DCells2 = myNum1
If DCells1 = 1 Then Start = myNum1 - 5
If DCells1 = 1 Then myNum1 = Start
If DCells1 = 1 Then For DLoop1 = Start To DCells2
If DCells1 = 1 Then Range("J" & DCells2).Value = ""
If DCells1 = 1 Then Range("K" & DCells2).Value = ""
If DCells1 = 1 Then Range("L" & DCells2).Value = ""
If DCells1 = 1 Then Range("M" & DCells2).Value = ""
If DCells1 = 1 Then Next DLoop1
'
End Sub