I'm working on this code in which there are two nested loops and I get a compile error "Next without for" in the line indicated
Sub Isindenm()
Dim wb As Workbook
Dim ws As Worksheet
Dim B As Integer
Dim firstrow As Integer
Dim lLastRow As Long
lLastRow = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
For firstrow = 14 To lLastRow
For B = 7 To 16
If IsNumeric(Cells(firstrow, B)) = True Then
Next B ***<-------------------Compile error:"next without for"***
Else
Cells(firstrow, 19) = Cells(firstrow, B)
End If
Next firstrow
End Sub