Moveing Rows

Y

ytayta555

Hi all , and a good day

I still have a problem . I need to move the content of rows ,
in the next order :
Rows :

A1 -
A2 -
A3 -
A4 -
A5 -

to became :

A1 = A5
A2 = A4
A3 = A3
A4 = A2
A5 = A1
 
P

Per Jessen

Hi

Try this:


Sub AAA()
Dim MyArr As Variant
Dim MyRange As Range

Set MyRange = Range("A1:A5")
MyArr = Array(MyRange.Value)
counter = UBound(MyArr(0))
For Each cell In MyRange
cell.Value = MyArr(0)(counter, 1)
counter = counter - 1
Next
End Sub

Regards,
Per
 
Y

ytayta555

It don't remove entire row , but it work very
well for me .

Thank you very much , have a good evening
 
Y

ytayta555

On 22 feb., 19:15, Gord Dibben <gorddibbATshawDOTca> wrote:

Thank you , Gord . Is useful for me
 

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

Top