+ Reply to Thread
Results 1 to 10 of 10

VBA: Get data from multiple sheet in sheet named RESULTa

  1. #1
    Registered User
    Join Date
    12-27-2018
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    39

    VBA: Get data from multiple sheet in sheet named RESULTa

    Get all sheet data in Sheet RESULTa in the workbook if there is data in all other sheets.
    All sheet data starts from column A1.

    First row and first column data (any text or number cobination) position is fixed in Sheet1, Sheet2, Sheet3.

    The data appears as below as when there are four sheets (Sheet1, Sheet2, Sheet3) in the workbook from A1 cell in each and the result as in the image will will be in RESULTa sheet. Data is coloured only to help in understanding:
    dom.png
    Attached Files Attached Files
    Last edited by vikim; 01-06-2019 at 07:22 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: VBA: Get data from multiple sheet in sheet named RESULTa

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

  3. #3
    Registered User
    Join Date
    12-27-2018
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    39

    Re: VBA: Get data from multiple sheet in sheet named RESULTa

    File attached.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: VBA: Get data from multiple sheet in sheet named RESULTa

    Check it out
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-27-2018
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    39

    Re: VBA: Get data from multiple sheet in sheet named RESULTa

    The code is showing 'Runtime error 1004'.
    I want to get only the data.
    Last edited by vikim; 01-08-2019 at 03:20 PM.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: VBA: Get data from multiple sheet in sheet named RESULTa

    Why are you getting an error?

  7. #7
    Registered User
    Join Date
    12-27-2018
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    39

    Re: VBA: Get data from multiple sheet in sheet named RESULTa

    Yes. When a sheet between others is empty.

  8. #8
    Registered User
    Join Date
    12-27-2018
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    39

    Re: VBA: Get data from multiple sheet in sheet named RESULTa

    Color based selection is not important. I need only the data.

  9. #9
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: VBA: Get data from multiple sheet in sheet named RESULTa

    Notice in the code you can ignore sheets you don't want to use. I can only supply a code for the wb sample you supplied.
    Remove the lines with the color code

  10. #10
    Registered User
    Join Date
    12-27-2018
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    39

    Re: VBA: Get data from multiple sheet in sheet named RESULTa

    Worked. Thank you very much.

+ 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] Import named sheet from multiple excel files into a single sheet in defined excel file
    By LovesEurope in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-16-2016, 10:45 AM
  2. copying data from one sheet to named sheets based on list on third sheet
    By Caddman2001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2015, 11:45 AM
  3. Create new sheet named today's date and paste existing data into the sheet
    By kmao2004 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2014, 06:35 PM
  4. Expanding code from working on one named sheet to multiple named sheets
    By BryanD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-15-2014, 01:26 PM
  5. Replies: 1
    Last Post: 07-11-2014, 04:19 PM
  6. [SOLVED] Paste data from source sheet to data sheet using 1st available row within a named range.
    By Krex14 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-28-2012, 08:14 AM
  7. referencing a sheet named in a cell then using data from that sheet
    By gbeard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-15-2005, 04:06 AM

Tags for this Thread

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