6diegodiego9
Board Regular
- Joined
- Jan 9, 2018
- Messages
- 80
- Office Version
- 2016
- Platform
- Windows
VBA Code:
Sub test()
Dim prov() As Variant
ReDim prov(1 To 1)
ReDim Preserve prov(2) ' this gives a "Subscript out of range" error. Why?
End Sub