Array write

G

Guest

Sub abc()

Set MyRange = Range("A1:J10")

MyRange.Copy Destination:=Range("A20")

End Sub
 
A

Alan Beban

You can if the array is originally declared as a dynamic array. E.g.,

Dim MyArray()
ReDim MyArray(1 to 10, 1 to 10)
MyArray = Range("A1:J10")

Alan Beban
 
G

Guest

Thx Alan, this works. Is the converse possible i.e.: to write from an array
into a worksheet range without using a for..next loop ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top