Solved

Macro to transpose columns in excel

Posted on 2013-01-17
2
469 Views
Last Modified: 2013-01-17
Hi,

I'm looking to write a macro in excel to move specific columns in a file, ie. I want to move Col A in file A to Col E in file B,
Col B in file A to Col C in file B,
Col C in file A to Col A in file B,
etc

Is someone able to help?
Cheers
0
Comment
Question by:DiCanio13
2 Comments
 
LVL 50

Accepted Solution

by:
teylyn earned 500 total points
ID: 38790458
Hello,

as a starting point, you could fire up the macro recorder, then copy the columns and stop the macro recorder.

What exactly do you need help with? VBA in general or this specific operation in particular?

cheers, teylyn
0
 

Author Closing Comment

by:DiCanio13
ID: 38790513
Hi,

good idea, i hadnt thought of that as i wanted to specifically see/change the code behind the macro as i knew id be changing details later

Think i'll just use the macro recorder and change the code later as i need too

Cheers
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now