Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I've been working on some code, which seems to have stopped working for reasons which are beyond me. I'm trying to read a range from the worksheet into an array using the code:- interpArray = Worksheets(sheetName(j)).Range(Cells(row1, col1), Cells(row2, col2)).Value This is pulling up a Run-time Error 1004 "Application-defined or object-defined error". If I hard code in the array i.e. interpArray = Worksheets(sheetName(j)).Range(Cells("a6:o22").Val ue then it works fine, but I need to be able to move down the sheet as the macro loops through, as I need a different range to be read with each loop of the array. Can anyone help me work out how to fix this? Thanks in advance! Kate |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reading to a 1-D array...Error | Excel Programming | |||
Reading a Range to an Array | Excel Programming | |||
Reading a VBA Array - Thanks | Excel Programming | |||
Reading .csv file into array | Excel Programming | |||
Reading a cell into an array | Excel Programming |