I get a VBA compilation error at the first line below shown in red " Cannot assign to array"
Can anyone please suggest where I might be going wrong?
Can anyone please suggest where I might be going wrong?
Code:
Dim aryCriticalItems(5) As String
Dim i%, j%
Dim LastRowNo%, RowNo%, ColNo%
Dim ce
Dim myRange As Range
[COLOR=red]aryCriticalItems = Array("245-8", "290-8", "315-8", "330-8", "336-8")[/COLOR]