H
Harlan Grove
Just caught a typo.
In Excel 97 VBE, the following general module code doesn't generate a compile
error.
'---- begin VBA ----
Option Explicit
Sub foo()
Dim n As Long
n = 5
ReDim y(1 To 5) '<- !!
MsgBox n
End Sub
'---- end VBA ----
Is the ReDim line an array variable declaration similar to Dim, or a statement,
or a hybrid? Does this work the same in 2K and XP?
In Excel 97 VBE, the following general module code doesn't generate a compile
error.
'---- begin VBA ----
Option Explicit
Sub foo()
Dim n As Long
n = 5
ReDim y(1 To 5) '<- !!
MsgBox n
End Sub
'---- end VBA ----
Is the ReDim line an array variable declaration similar to Dim, or a statement,
or a hybrid? Does this work the same in 2K and XP?