+ Reply to Thread
Results 1 to 8 of 8

copy multiple column, including headers, to a new sheet

  1. #1
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    copy multiple column, including headers, to a new sheet

    Hi everybody!

    I have this partial code to copy some columns from a table in WS and past only the values in WS1

    Please Login or Register  to view this content.
    What should I add to the code to past values of the column including the headers?

    Thanks!
    Last edited by boboivan; 02-16-2015 at 04:44 AM.

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: copy multiple column, including headers, to a new sheet

    Could you please provide columns Nbrs

    mean while u can try this sample

    Please Login or Register  to view this content.
    Last edited by Naveed Raza; 02-16-2015 at 05:05 AM.
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: copy multiple column, including headers, to a new sheet

    Quote Originally Posted by Naveed Raza View Post
    Could you please provide columns Nbrs
    Column's 2 name is = Reg. no.
    Column's 3 name is = Date of reg.
    Column's 10 name is = Content
    Column's 16 name is = No. of pages
    Column's 17 name is = Interval

  4. #4
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: copy multiple column, including headers, to a new sheet

    Quote Originally Posted by boboivan View Post
    Column's 2 name is = Reg. no.
    Column's 3 name is = Date of reg.
    Column's 10 name is = Content
    Column's 16 name is = No. of pages
    Column's 17 name is = Interval
    try this
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: copy multiple column, including headers, to a new sheet

    Quote Originally Posted by Naveed Raza View Post
    Could you please provide columns Nbrs

    mean while u can try this sample

    Please Login or Register  to view this content.
    Works, but if I use EntireColumn.Copy, I'll have over 20000 pages to print from my new sheet .
    I need to paste in the new sheet only the table's values (from these particular columns), including headers
    I tried to set up the rage as:
    Please Login or Register  to view this content.
    but returns only the headers
    Last edited by boboivan; 02-16-2015 at 05:32 AM.

  6. #6
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: copy multiple column, including headers, to a new sheet

    Hi

    In place of #headers replace this #All and Try some thing like this

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: copy multiple column, including headers, to a new sheet

    Quote Originally Posted by Naveed Raza View Post
    Hi

    In place of #headers replace this #All and Try some thing like this

    Please Login or Register  to view this content.
    Thanks!
    Works like a charm.

  8. #8
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: copy multiple column, including headers, to a new sheet

    Hi

    Glad to help you

    please don't forget to mark this thread as SOLVED and click on Add Reputation to say thanks

+ 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. [SOLVED] Copy Column A data to Sheet 2 where rows matches Sheet 2 headers
    By SCDE in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2015, 12:14 AM
  2. Copy from one sheet to another based on column headers
    By in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2014, 10:27 AM
  3. Replies: 4
    Last Post: 02-24-2014, 03:49 PM
  4. [SOLVED] how to copy worksheet including headers & footers
    By jmac1947 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2014, 06:41 AM
  5. Search Column Headers and Copy into a Sheet
    By ukguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2012, 10:28 AM

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