Following a tutorial for arrays on VBA Excel. As you can see, just about everything is commented out and I still get this error. If I use Range("A1", "A1").Value = 1 there's no problem. I also noticed that the intelisense doesn't pick up 'Cells('
Option Explicit
Sub ArrayTest()
'Dim arrayint(1 To 5) As Integer
'Dim i As Integer
'Dim j As Integer
' For j = 1 To UBound(arrayint)
' arrayint(j) = 10 * j
' Next j
' For i = i To UBound(arrayint)
Cells(1, 1).Value = 1 'arrayint(i)
' Next i
End Sub
Applicationthen check ifIntellisensepick upCellsproperty. So, in short, try thisApplication.Cells(1, 1).Value = 1. I have no way to test it at XL 2013, so give it a try.Application. I have no problem in it at XL 2010.