Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array
Hello
How can I do this? : Im trying to set the values of a group of cells to an array. Set rng2 = Array(Range("B4" & .Value), Range("B5" & .Value)) The actual range is B4:I4, but I cannot even get it to work with 2 cells. I tried set rng2=Array(Range("B4:I4").value, but Im sure ya'll know that did not work either. Thank you so much Terry V |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array
hi
this will create an array for Range("B4:I4") Sub Test() Dim rng As Variant rng = Range("B4:I4") End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array
Terry
Explain to us what you are trying to do. Why do you want to set up this array? What do you want to do with it once you get it set up? HTH Otto "Terry VanDuzee" wrote in message ... Hello How can I do this? : Im trying to set the values of a group of cells to an array. Set rng2 = Array(Range("B4" & .Value), Range("B5" & .Value)) The actual range is B4:I4, but I cannot even get it to work with 2 cells. I tried set rng2=Array(Range("B4:I4").value, but Im sure ya'll know that did not work either. Thank you so much Terry V |
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 | |||
Array formula: how to join 2 ranges together to form one array? | 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 | |||
combining cells and array from different sheets into an array to pass to IRR() | Excel Discussion (Misc queries) |