Solved

Macro to transpose columns in excel

Posted on 2013-01-17
2
474 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

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…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

615 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