+ Reply to Thread
Results 1 to 14 of 14

Marge data inside Master workbook getting data multiples files based specfic sheets

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Marge data inside Master workbook getting data multiples files based specfic sheets

    Hi

    I have 1 Wbk Master with 27 sheets (main sheets), and i have 70 files .xlsx (in folder MymarrecoFolde) each file have 40 tabs (27 tabs that i want).
    I need get in ALL files (no file Master) wich has tabs equal tabs in my Master workbook.

    So my tabs has tab name equal master workbook then copy data.


    I try code below, but display error bad name 52
    Please Login or Register  to view this content.
    Attached Images Attached Images
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    Hi

    Someone understand my question?

  3. #3
    Registered User
    Join Date
    05-28-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    9

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    give me a sec looking now

  4. #4
    Registered User
    Join Date
    05-28-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    9

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    Set wbData = Workbooks.Open(fPath & fName) should be just Set wbData = Workbooks.Open(fPath) - path includes name

  5. #5
    Registered User
    Join Date
    05-28-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    9

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    me entendi cara?

  6. #6
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    I have same error
    run time error '52':

  7. #7
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    Hi

    Someone can help me?

    Thank you!!

  8. #8
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    Hi, I need adapt this code, after look back on my posts I find this, but recentily I wll need use this again and I still without solution.

    In this line how change this part of code to see sources sheets with "Sheet1" names?
    Please Login or Register  to view this content.
    Attached Images Attached Images

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

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  10. #10
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    Hi Jindon, thanks.

    Look at my image file, I insert what is happening and what I need.

    thanks
    Attached Images Attached Images

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

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    Are there any other worksheet(s) besides wsSource_1 to 4 in Mater file?

  12. #12
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    Yes, 2 tabs (Dashboard, utils). If you need more datails let me know.

    Thank you!

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

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    Untested,
    Please Login or Register  to view this content.
    Last edited by jindon; 08-13-2021 at 10:08 AM.

  14. #14
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Marge data inside Master workbook getting data multiples files based specfic sheets

    hi jindon, this work like charm.

    Thank you so 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. Replies: 8
    Last Post: 04-17-2015, 04:20 PM
  2. Creating a master sheet using data from other sheets in the workbook.
    By Chaos247 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-22-2013, 07:57 AM
  3. [SOLVED] Populate Master Sheet with data from other sheets in workbook...
    By DMA-Pacific in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-18-2013, 01:21 AM
  4. [SOLVED] Macro to capture data from multiple excel files into another master workbook
    By Amaresh Babu K S in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-06-2012, 03:26 AM
  5. Replies: 4
    Last Post: 03-29-2012, 03:12 PM

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