+ Reply to Thread
Results 1 to 9 of 9

Required Macros for combine worksheets in to master with defined range

  1. #1
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    windows 2007
    Posts
    5

    Required Macros for combine worksheets in to master with defined range

    Hi Experts,

    Need your support and help.

    I am looking for code where in it has to combine multiple worksheets in to master sheet with multiple range defined.

    Example: I have five worksheets which needs to combine in to one master sheet with multiple ranges like A1:A100, C1:C100, E1:E100
    from all sheets remaining fields not required.

    I've tried and lost my hopes. But i feel for experts its nothing as being a beginner am facing this problem.

    Can any one help me on this that would be a great-full

    Thanks in advance.

    Regards,
    Damo.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2407 Win 11 Home 64 Bit
    Posts
    24,069

    Re: Required Macros for combine worksheets in to master with defined range

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    windows 2007
    Posts
    5

    Re: Required Macros for combine worksheets in to master with defined range

    Hi Alansidman,

    Thanks for your reply.

    Please find the attachment.

    From all the three sheets i want data from A1:A10,C1:C10,D1:D10 in to one master sheet with same headers.

    Regards,
    Damo.
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2407 Win 11 Home 64 Bit
    Posts
    24,069

    Re: Required Macros for combine worksheets in to master with defined range

    Your data arrangement is not consistent. Sheet 3 has different data in different fields than sheets 1 and 2. Is this by design? or does it need to be changed for consistency?

  5. #5
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    windows 2007
    Posts
    5

    Re: Required Macros for combine worksheets in to master with defined range

    I am really sorry. Please exclude D1:D10.

    My prime moto is to get specified cells in master sheet with common headers by excluding remaining cells.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2407 Win 11 Home 64 Bit
    Posts
    24,069

    Re: Required Macros for combine worksheets in to master with defined range

    Here is some code for you to try. Note the issue in the previous post.

    Please Login or Register  to view this content.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2407 Win 11 Home 64 Bit
    Posts
    24,069

    Re: Required Macros for combine worksheets in to master with defined range

    Please exclude D1:D10.
    That will not solve the issue. You are missing a filenumber in Sheet 3 that throws the columns off. I added in a filenumber column in my test of this code for consistency. Failure to have column alignment consistent will result in erroneous data being consolidated if you use my code.

  8. #8
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    windows 2007
    Posts
    5

    Re: Required Macros for combine worksheets in to master with defined range

    I should say really heart-full thanks to you. You are really amazing.

    Small concern master sheet is coming in between sheet 2 and sheet 3. It cant come after sheet 3?

    Regards,
    Damo.

  9. #9
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    windows 2007
    Posts
    5

    Re: Required Macros for combine worksheets in to master with defined range

    Up-gradation of macros with the below queries:

    -master sheet is coming in between sheet 2 and sheet 3. It cant come after sheet 3?
    -Data has to pull from sheet 2 instead sheet 1(Sheet 1 planning to maintain for Summary)
    -once macro runs later if any changes made cant we re run the macro(i.e on the same master report results cant be appear) while trying to run macro for second time system throwing error msg "run time error-1004".

    Please advise on the above.

    Regards,
    Damo..

+ 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. Replies: 1
    Last Post: 04-16-2013, 05:41 AM
  2. How to automatically combine data from multiple worksheets into a master worksheet
    By BeardedLuminary in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-28-2013, 10:57 AM
  3. Macro to combine multiple worksheets into a Master file
    By hazte22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2012, 04:28 AM
  4. Replies: 3
    Last Post: 09-26-2012, 07:48 PM
  5. Combine 2 Macros Help Required
    By m_789 in forum Excel General
    Replies: 1
    Last Post: 06-20-2012, 11:07 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