jbehmoaras
New Member
- Joined
- Apr 8, 2011
- Messages
- 8
It's been a few years since I set one of these up but I referenced my old code that worked and cant figure out what I'm doing wrong now.
I created the following structure:
Public Type STRArr
occ As Variant
adr As Variant
revpar As Variant
period As Variant
year As Integer
End Type
delared an object
Public strFY() As STRArr
and just tried to redim the array
Public Sub popArr()
ReDim Preserve strFY(10)
End Sub
and am getting a variable not defined error ... not sure i understand why? Also i think i have the correct reference libraries installed.
I created the following structure:
Public Type STRArr
occ As Variant
adr As Variant
revpar As Variant
period As Variant
year As Integer
End Type
delared an object
Public strFY() As STRArr
and just tried to redim the array
Public Sub popArr()
ReDim Preserve strFY(10)
End Sub
and am getting a variable not defined error ... not sure i understand why? Also i think i have the correct reference libraries installed.