1

I would like to copy Range values into an array, and then copy the array into new range like below.

Sub Macro1()
'
' Macro1 Macro
Dim Arr As Variant
Arr = Range("A1:A3").Value
Range("C1:E1").Value = Arr
End Sub

But, the result is as below.

enter image description here

What's wrong with this code?

Are there any ways to tranfer range values into new range without for loop?

1 Answer 1

4

Use Transpose()

Replace this line

Range("C1:E1").Value = Arr

With

Range("C1:E1").Value = Application.Transpose(Arr)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.