+ Reply to Thread
Results 1 to 8 of 8

Macro to extract data on Summary sheet

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,717

    Macro to extract data on Summary sheet

    I have a "summary sheet " and I would like a macro to extract the data from sheets 2 onwards and paste this on the summary sheet and also insert the name of the applicable sheet in Col D (company name) on the summary sheet based pertaining to the data copied for that sheet


    I have attached sample data


    Your assistance is most appreciated
    Attached Files Attached Files
    Last edited by Howardc1001; 03-28-2020 at 11:58 PM.

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

    Re: Macro to extract data on Summary sheet

    Try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,717

    Re: Macro to extract data on Summary sheet

    Thanks Jindon

    Thanks for the help, much appreciated

    Stay Safe


    Regards


    Howard

  4. #4
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,717

    Re: Macro to extract data on Summary sheet

    Hi Jindon

    I have added an extract sheet called "Summary 1st Payment"


    I have tried to amend your code so that data is only extracted from sheet "CGP" up until the last sheet

    I get a run time error Next with for , but unsure of how to correct this


    Kindly advise


    Please Login or Register  to view this content.

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

    Re: Macro to extract data on Summary sheet

    Try change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,717

    Re: Macro to extract data on Summary sheet

    Thanks Jindon. It works perfectly

    If I wanted to exclude another sheet for eg "summary 2nd payment" do I do it as follows

    Please Login or Register  to view this content.

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

    Re: Macro to extract data on Summary sheet

    That will not work
    1) If you want to exclude the sheet name begin with "Summary" then just change to
    Please Login or Register  to view this content.
    2) Or no rule then Select Case statement would be better
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,717

    Re: Macro to extract data on Summary sheet

    Thanks Jindon

+ 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] Need macro help with copying data to a summary sheet
    By AccentedCatalyst in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2018, 10:14 PM
  2. [SOLVED] formula or vba to extract complex specific data in transpose mode on summary sheet
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2017, 08:52 PM
  3. [SOLVED] vba to extract subtotals with their corresponding row values to a summary sheet
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-20-2017, 05:55 PM
  4. Macro to fill the data into Summary sheet basis of different scenarios from Data sheet
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2016, 11:48 AM
  5. Extract data from worksheets to create a summary sheet
    By sniffer in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-28-2013, 07:17 PM
  6. Extract data into summary sheet
    By vijanand1279 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 11-17-2012, 11:17 AM
  7. Macro to extract data from various workbooks & paste in seperate summary sheet
    By Poppy23 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-09-2011, 11:41 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