Extracting nth element of X dimension
From: ExcelMonkey (ExcelMonkey.112zs4_at_excelforum-nospam.com)
Date: 02/04/04
- Next message: Dave Peterson: "Re: Setting the default file name in the XLDialogSaveAs dialog box"
- Previous message: Dave Peterson: "Re: How do I? Link Row Headings"
- Next in thread: Tom Ogilvy: "Re: Extracting nth element of X dimension"
- Reply: Tom Ogilvy: "Re: Extracting nth element of X dimension"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 3 Feb 2004 20:54:06 -0600
I have a 5D array. I have counters which I use for the first, third,
fourth, and fifth dimensions when I want to pass values into the array.
However, the length of the second dimension is changing constantly as
I build my routine and I have hard coded a number 9 in it currently. I
need to reference this 9 elsewhere. So as I decide to expand the 2nd
dimension to say 10, I will have to make sure that I change all the
other 9s to 10. Is there a way extract the value that is currently in
the second dimension (i.e. the 9) and pass it to a variable that I can
use elsewhere?
Array1(Counter1, 9, Counter2, Counter3, Counter4) = 250
SecondDimensionVariable = UBound(UnitOfferArray, 2) will only tell me
what I set the max to. I want to know what it currently is?
--- Message posted from http://www.ExcelForum.com/
- Next message: Dave Peterson: "Re: Setting the default file name in the XLDialogSaveAs dialog box"
- Previous message: Dave Peterson: "Re: How do I? Link Row Headings"
- Next in thread: Tom Ogilvy: "Re: Extracting nth element of X dimension"
- Reply: Tom Ogilvy: "Re: Extracting nth element of X dimension"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|