Hello,
I have the following code ...
[VBA]Option Explicit
Type LineInfo
Position As Integer
Month As String * 1
Year As Integer
Strike As Integer
CPF As String * 1
End Type
Sub ProduceReport()
Dim rows1 As Integer, rows2 As Integer
Dim USAline() As LineInfo
'
rows1 = Worksheets("USA").Cells(Rows.Count, "A").End(xlUp).row
' rows2 = Worksheets("ProOpt").Cells(Rows.Count, "A").End(xlUp).row
'
' USAline = Worksheets("USA").Range(Cells(2, 1), Cells(rows1, 5))
' Populate the array.
USAline = Worksheets("USA").Range(Cells(2, 1), Cells(rows1, 5))
' Display a message box with a value in the array
MsgBox USAline(25, 1)
End Sub
[/VBA]
Why might I be generating the error
"only user defined types defined in public object modules ..." ?