Solved

Macro to transpose columns in excel

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel compare strings 6 55
A WS within a WS 11 41
vba code to create folders according to a hyperlink 14 41
Excel - merge column values 3 26
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,…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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 demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

739 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