Been given a (very complicated!) Excel spreadsheet that's not working. Its been changed here, there and everywhere and normally when I write one I do it from scratch - trying to fix what someone else wrote is complicated. A lot of features written originally linked in with a piece of software we don't have so they've been commented out etc and its all a bit confusing.
I'm trying to get my head around it, looking at the macro code and I'm puzzled by this definition:
Dim dtime(11, 4) As Variant
I thought variant was open-ended, I've never really used it. What does the (11, 4) mean? There are more examples throughout of variables being defined as variant with two numbers in brackets, not seen that before.
In the context its used it appears to be a two-dimensional array of references from 0 - 11 across and 0-4 down.


Reply With Quote