Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() How to copy F1:F5 values to a range of scattered cells. And, can you copy a range of scattered cells to another unlike range of scattered cells? Howard Option Explicit Option Base 0 Sub Copy_Array() Dim FromArray(5) As Variant Dim ToArray(5) As Variant Dim i As Integer FromArray = Range("F1:F5") ' fails here- 'can't assign to array ToArray = Range("A1,B2,C3,D4,E5") For i = LBound(FromArray) To UBound(FromArray) ToArray(i) = FromArray(i) Next i End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Scattered array cells copy to scattered array cells another workbook | Excel Programming | |||
Reading variable list of cells into array | Excel Programming | |||
Redimming an array dynamically assigned from range (how to redim first dimension of a 2-D array? /or/ reverse the original array order) | Excel Programming | |||
combining cells and array from different sheets into an array to pass to IRR() | Excel Discussion (Misc queries) | |||
Writing Range to Array | Excel Programming |