+ Reply to Thread
Results 1 to 4 of 4

Copy columns from one sheet to new, rename headlines

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    83

    Copy columns from one sheet to new, rename headlines

    Hello

    I need to copy 120 columns from one sheet to a new.
    The columns needs to be in a certain order.
    So I need fx. from the original sheet column 2 is called "number" and I need that column to be put in new sheet as column 1 with new headline "no."
    Guess I need almost the same code for all of the just with different names etc.
    can anyone help with the template, or is it easier to use vlookup or something which i'm not too familiar with

    I also need to put in blank columns with specific headlines in between some columns - so fx. in column 4 I need a blank column with headline "search"..

    Kind regards
    Last edited by Excelsemi; 06-30-2014 at 06:52 AM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy columns from one sheet to new, rename headlines

    Can you provide a sample maybe inserting a row 1 which shows where each column would be on the new sheet2. VLOOKUP sounds to me would not be the best option.

  3. #3
    Registered User
    Join Date
    03-06-2014
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Copy columns from one sheet to new, rename headlines

    yea okay - maybe a bit hard since there is 120 columns, or well about 50 which needs to be renamed and replaced and 60-70 empty with a certain headline inserted.

    but it would be something like this:
    So I have what the original headlines are, and what critiera it should insert into the new sheet (ie. what the new headline should be + what number it has to be and where the empty columns and what they needs to be called) it's just that it's 120 columns, so mostly the specifications that will take time I guess once there is a VBA template where I can change the input/output?

  4. #4
    Registered User
    Join Date
    03-06-2014
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Copy columns from one sheet to new, rename headlines

    I have found this code which can do some of it - I just need it to change the column names while it copies to the new specified numbers, is that possible

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 06-28-2014, 02:26 PM
  2. Replies: 4
    Last Post: 08-16-2013, 04:10 AM
  3. Copy certain info in one sheet to a new sheet to a different area and rename new sheet
    By Elmarie_Potgieter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2013, 05:34 AM
  4. [SOLVED] Copy a sheet (from template) to a new sheet, and rename (based on cell value)
    By Siglen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-30-2012, 10:19 AM
  5. copy sheet to new sheet, rename it, return cell contents
    By soldstatic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2009, 01:49 PM

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