View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jason Yang Jason Yang is offline
external usenet poster
 
Posts: 2
Default Array copying to a filtered region

I have a serious problem in writing an array into a range.
The following code works perfectly when I do not use any Filter.

' arr is an 10x1 array of integers
' Need to write this array in the rows 1~10 in the first column
Range(Cells(1,1),Cells(10,1))=arr

But, if the AutoFilter is activated and some rows are hidden, the data are
written wrongly.

Any clue?