I am trying to loop through cells and replace certain numbers with a coded domain number (ie - 6 should be coded as a 2, etc). I have used this exact same method in numerous other places throughout this VBA and it seems to work just fine. This portion is giving the error of "Loop Without Do" even though there is an "End If" statement. I've searched through other questions and answers and can't seem to pinpoint my mistake. Any help would be greatly appreciated!
Sub LateralSizeID()
'Column AO
Dim wb As Workbook
Dim sht1 As Worksheet
Dim sht2 As Worksheet
Dim nr As Long
Set wb = ThisWorkbook
Set sht1 = wb.Sheets("From AGO")
Set sht2 = wb.Sheets("To MapCall")
nr = 2
Range("AO2").Select
Do Until IsEmpty(ActiveCell)
If sht2.Cells(nr, "AO").Value = "6" Then
sht2.Cells(nr, "AO").Value = "2"
If sht2.Cells(nr, "AO").Value = "4" Then
sht2.Cells(nr, "AO").Value = "1"
If sht2.Cells(nr, "AO").Value = "8" Then
sht2.Cells(nr, "AO").Value = "3"
Else: sht2.Cells(nr, "AO").Value = "2"
End If
nr = nr + 1
ActiveCell.Offset(1, 0).Select
Loop
MainSizeID
End Sub