Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am trying to read a single column into an array. The code that I have written is giving me a Runtime Error '1004'- Application - defined or Object - defined error. Could you please help me to understand the mistake...The code is as below. Function GenMArray() As Variant ThisWorkbook.Sheets("SUMMARY").Range("NO_OF_MODULE S").Activate ActiveCell.Offset(3, 1).Select MsgBox "The address is " & ActiveCell.Address GenMArray = Application.Transpose(Range(ActiveCell, ActiveCell.End(xlDown))) End Function Thanks, shi |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reading a Range to an Array | Excel Programming | |||
Reading a VBA Array - Thanks | Excel Programming | |||
Reading .csv file into array | Excel Programming | |||
reading an arbitrary selection into a 1D array | Excel Programming | |||
Reading a cell into an array | Excel Programming |