Solved

Macro to transpose columns in excel

Posted on 2013-01-17
2
472 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:
Ingeborg Hawighorst 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

821 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