Compile error

jyokom

Board Regular
Joined
May 24, 2004
Messages
148
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
 
Last edited:
First, I apologize for the late response,
All the items are checked. Still receive the error.
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Wouldn't you need to change the
Code:
With Sheets("Sheet1")

to:

Code:
With Sheets("Saved")
?
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,351
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top