S
shishi
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_MODULES").Activate
ActiveCell.Offset(3, 1).Select
MsgBox "The address is " & ActiveCell.Address
GenMArray = Application.Transpose(Range(ActiveCell,
ActiveCell.End(xlDown)))
End Function
Thanks,
shi
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_MODULES").Activate
ActiveCell.Offset(3, 1).Select
MsgBox "The address is " & ActiveCell.Address
GenMArray = Application.Transpose(Range(ActiveCell,
ActiveCell.End(xlDown)))
End Function
Thanks,
shi