Why do I get a compile error: Invalid Qualifier when I run the following? The debugger highlights the "i" in the line Cbo_ARTrack & i.Value
Sub SaveAR_Loop()
Dim i As Integer
Dim NextRow As Integer
NextRow = Worksheets("Saved").Range("A65536").End(xlUp).Row + 1
For i = 1 To 8
Worksheets("Saved").Cells(NextRow, 14 + i).Value = "Cbo_ARTrack" & i.Value
Worksheets("Saved").Cells(NextRow, 15 + i).Value = "DTP_ARCT" & i.Value
Worksheets("Saved").Cells(NextRow, 16 + i).Value = "TB_TrkTime" & i.Value
Worksheets("Saved").Cells(NextRow, 17 + i).Value = "Cbo_RcvrUnit1_" & i.Value
Worksheets("Saved").Cells(NextRow, 18 + i).Value = "Cbo_RcvrMDS1_" & i.Value
Worksheets("Saved").Cells(NextRow, 19 + i).Value = "TB_RcvrCall1_" & i.Value
Worksheets("Saved").Cells(NextRow, 20 + i).Value = "TB_OffOn1_" & i.Value
Next i
ThisWorkbook.Save
End Sub
Sub SaveAR_Loop()
Dim i As Integer
Dim NextRow As Integer
NextRow = Worksheets("Saved").Range("A65536").End(xlUp).Row + 1
For i = 1 To 8
Worksheets("Saved").Cells(NextRow, 14 + i).Value = "Cbo_ARTrack" & i.Value
Worksheets("Saved").Cells(NextRow, 15 + i).Value = "DTP_ARCT" & i.Value
Worksheets("Saved").Cells(NextRow, 16 + i).Value = "TB_TrkTime" & i.Value
Worksheets("Saved").Cells(NextRow, 17 + i).Value = "Cbo_RcvrUnit1_" & i.Value
Worksheets("Saved").Cells(NextRow, 18 + i).Value = "Cbo_RcvrMDS1_" & i.Value
Worksheets("Saved").Cells(NextRow, 19 + i).Value = "TB_RcvrCall1_" & i.Value
Worksheets("Saved").Cells(NextRow, 20 + i).Value = "TB_OffOn1_" & i.Value
Next i
ThisWorkbook.Save
End Sub
Last edited: