Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array Help
can I creat a public array, the contents of which are visinle to all
procuedures in the project? How do I do this? Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array Help
Declare the array as Public right below the Option Explicit inside a
module. Sandy wrote: can I creat a public array, the contents of which are visinle to all procuedures in the project? How do I do this? Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array Help
Declare the array as Public right below the Option Explicit inside a
module. For example: Option Explicit Public arrTest() Public Sub SomeSub... End Sub... etc... Sandy wrote: can I creat a public array, the contents of which are visinle to all procuedures in the project? How do I do this? Thanks |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array Help
at the top of the module
Public vArr(1 to 10) as Long then if necessary initialize it in one of your procedures Sub IntivArr() for i = lbound(varr) to ubound(varr) varr(i) = int(rnd*100+1) Next End sub You will need to call InitvArr at least once before you try to extract any values from the array (if that is what you need to do). -- Regards, Tom Ogilvy "Sandy" wrote: can I creat a public array, the contents of which are visinle to all procuedures in the project? How do I do this? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Complex conditional summing - array COUNT works, array SUM gives#VALUE | Excel Worksheet Functions | |||
Prevent cell/array references from changing when altering/moving thecell/array | Excel Discussion (Misc queries) | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming |