+ Reply to Thread
Results 1 to 3 of 3

Need macro to copy columns to a new sheet in a different order

  1. #1
    Valued Forum Contributor
    Join Date
    06-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    341

    Need macro to copy columns to a new sheet in a different order

    Hi,

    Can someone please write this simple macro for me? I'm totally useless with macros.

    Summary:
    Create new worksheet (can be any name)
    Copy columns from worksheet original (name might change, so use activeworksheet) to their new positions on the new worksheet

    Actual size will be quite big, so use aslong

    A number of columns will stay in their original positions - those are marked green. Everything else moves and is marked as such.

    Thanks for any help you can offer.
    Attached Files Attached Files
    Last edited by dip11; 09-07-2012 at 09:16 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    341

    Re: Simple macro to transfer columns to a new sheet in a different order

    List of Moves for reference purposes:
    A-CP to A-CP
    CQ to DW
    CR to CU
    CS to CV
    CT to CZ
    CU to DA
    CV to DB
    CW to EM
    CX to DL
    CY to DM
    CZ to DN
    DA to DO
    DB to DP
    DC to DQ
    DD to DR
    DE to DS
    DF to DT
    DG to DX
    DH to CT
    DI to CS

  3. #3
    Valued Forum Contributor
    Join Date
    06-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    341

    Re: Need macro to copy columns to a new sheet in a different order

    Came up with this, but it doesn't work when I have the Paste section
    Without the paste section it works but I get lots of errors because its pasting formulas and not values
    I tried it with PasteSpecial too but didn't work either
    Please Login or Register  to view this content.
    [edit]
    Figures, all I needed were line breaks between Copy and Sheets to fix it -.-
    Last edited by dip11; 09-07-2012 at 10:18 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1