+ Reply to Thread
Results 1 to 7 of 7

macro to copy in loop all sheets at specific row and paste in a new workbook

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    macro to copy in loop all sheets at specific row and paste in a new workbook

    I have a workbook with several sheets which has same format and headers ,

    The data starts at row 24 and headers at row 23.


    I used the code below to copy but how to make a loop in all sheets and create a new workbook with sheet named summary.

    Note that there is a hidden row in column B which I do not want to copy.



    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: macro to copy in loop all sheets at specific row and paste in a new workbook

    Hi Jean

    Give this a go...
    Please Login or Register  to view this content.
    Last edited by sintek; 01-31-2018 at 02:35 PM. Reason: Added red code
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: macro to copy in loop all sheets at specific row and paste in a new workbook

    Hi Sintek

    Works as charm perfectly

    But insight from me ,my apology for this , on each sheet column A16 there is invoice no which looks like this FACTURE N° 186-2017-005C

    Need to adjust code to insert a column in first column A of summary sheet as invoice header and to extract 186-2017-005C. which is always of 13 characters as per sheet from test fact .xlsx

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: macro to copy in loop all sheets at specific row and paste in a new workbook

    If I understand you correctly, then this will solve...
    Please Login or Register  to view this content.
    Last edited by sintek; 01-31-2018 at 05:06 PM.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: macro to copy in loop all sheets at specific row and paste in a new workbook

    JEAN1972

    Try
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: macro to copy in loop all sheets at specific row and paste in a new workbook

    Sintek & Jindon Thank you lot for assistance , both solution works a charm

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: macro to copy in loop all sheets at specific row and paste in a new workbook

    Always a pleasure Jean...Tx for rep +

+ 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. Looper to Loop through sheets in workbook and copy paste to another workbook
    By amartin575 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2017, 12:57 AM
  2. [SOLVED] Copy Paste to Loop Through Sheets in Workbook
    By InkyDrinky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-26-2016, 03:00 PM
  3. Loop through all sheets and copy and paste values for specific formula
    By SAFC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2015, 08:17 AM
  4. [SOLVED] Macro to copy a specific cell and paste in another cell, for all sheets in workbook
    By lyoung1124 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2014, 10:15 AM
  5. Macro - Copy Specific Cells in 1 workbook and paste in another.
    By liybpg in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-23-2012, 10:55 AM
  6. Macro to copy a selection, paste it in a new workbook then loop
    By AK262007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2010, 06:35 AM
  7. macro to copy specific data from one sheet and paste into two sheets
    By Shogun in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2009, 04:56 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