We help IT Professionals succeed at work.
Get Started

vba to flip column

Last Modified: 2017-03-22
Dear sir , i have vba where its downloads data from web and copy data to another sheet , but i need data to be flipped in reverse order. (i.e) column A has values of 1 ,2 ,3 ,4 and need column A values to be flipped as 4,3,2,1 and so on.
 here is my vba code

Sub Go()
' Go Macro
' Macro recorded 29/03/2007 by pjPonzo

Dim i As Integer, N As Integer, j As Integer, sym As String

N = Range("A2")
j = 3
' get data for each symbol
For i = 1 To N
    sym = Cells(1, 2 + i)
'    sym = sym + "&selected=" + sym
    Cells(3, j) = sym
    Range("A2") = sym
    Cells(5, j).Select
    Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
        False, Transpose:=False
    j = j + 10
Next i


End Sub

Open in new window

i have attached my excel sheet image

here webpage is the data download from web and data sheet where it copy that data from webpage to data sheet , i have attached code for copy data sheet.
Watch Question
Top Expert 2016
This problem has been solved!
Unlock 1 Answer and 14 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE