+ Reply to Thread
Results 1 to 2 of 2

Copy columns with specified names to a newly created Sheet.

  1. #1
    Registered User
    Join Date
    12-07-2015
    Location
    london
    MS-Off Ver
    10
    Posts
    1

    Copy columns with specified names to a newly created Sheet.

    Hi,

    I am pretty new to VBA and am struggling in writing a simple code.

    Every day I receive spreadsheet with many columns of data, I'm trying to write a code that locates columns with the headings 'Platform' , 'Complex' , 'Field' and 'Area' and then copy the entire column (Columns may be in different cells and different lengths each time), into a newly created worksheet (not sheet 2, as each workbook may have a differnt number of sheets). And then add two new columns titles called 'TPL' and 'OPAL'.

    This is what I have so far, it copies one column but i cannot get it to copy the others:
    Please Login or Register  to view this content.


    Any help would be much appreciated.


    MOderator Note:

    Pls use code tags when you post codes.
    Last edited by Fotis1991; 12-08-2015 at 04:33 AM.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,358

    Re: Copy columns with specified names to a newly created Sheet.

    Please use codetags when posting code.
    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. Linking newly created worksheet names to cells?
    By qstillso in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2015, 07:09 AM
  2. [SOLVED] macro to copy paste visible cells into a newly created sheet
    By melody10 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-19-2015, 04:14 PM
  3. Copy paste values to a newly created sheet
    By Pelikan in forum Excel General
    Replies: 5
    Last Post: 04-25-2014, 10:48 AM
  4. Add vba to current macro to copy table into newly created sheet
    By Morgraal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2013, 07:10 AM
  5. Replies: 0
    Last Post: 07-16-2013, 01:20 PM
  6. [SOLVED] VBA copy values to newly created sheet problem
    By dusoo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2013, 10:32 PM
  7. How to copy to newly created sheet and save as PDF?
    By joanneb in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-30-2009, 04:05 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