Solved

Macro to transpose columns in excel

Posted on 2013-01-17
2
470 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

863 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

28 Experts available now in Live!

Get 1:1 Help Now