R
raj
I am using an array to fill the data into the Excel sheet.
It works fine for smaller size of arrays ( say 600 X 20) .
But If the data is large , then it gives '1004 : application defined or
object defined error'
The code is something like below.
Dim avsheet3 as Variant
/* some more code */
Redim avSheet3(8500, 14)
/* some more code to fill the array */
sRange = "A1:N8500"
set worksheet = workbook.worksheet(3)
worksheet.Range(sRange).value = avsheet3
It gives the error on the last line.
It works fine for smaller size of arrays ( say 600 X 20) .
But If the data is large , then it gives '1004 : application defined or
object defined error'
The code is something like below.
Dim avsheet3 as Variant
/* some more code */
Redim avSheet3(8500, 14)
/* some more code to fill the array */
sRange = "A1:N8500"
set worksheet = workbook.worksheet(3)
worksheet.Range(sRange).value = avsheet3
It gives the error on the last line.