Does anyone know why this doesn't throw a Variable not defined
error when I compile it?
'Class1.cls'
Option Explicit
Public Sub foo()
ReDim fubar(1 To 2, 1 To 1)
End Sub
Am I misunderstanding how Option Explicit
is supposed to work? Or is there something wrong with this test? Or is this just a bug in VBA?
(I am testing this on Excel 2007)