+ Reply to Thread
Results 1 to 10 of 10

One_Wbk from One_Tab to Wkb's -> One_Tab each Wbk

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

    One_Wbk from One_Tab to Wkb's -> One_Tab each Wbk

    Hi.
    this brilliant code filters the main guide and creates multiple tabs (based on column B).
    How to adapt this code so that instead of creating tabs, enter the data within different books in their respective tabs?
    Please Login or Register  to view this content.
    Att
    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: One_Wbk from One_Tab to Wkb's -> One_Tab each Wbk

    Hi friends, someone understand my question?

    Thanks

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

    Re: One_Wbk from One_Tab to Wkb's -> One_Tab each Wbk

    Hi, someone can help me?

    Thks

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

    Re: One_Wbk from One_Tab to Wkb's -> One_Tab each Wbk

    Hi...help please...!!


  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: One_Wbk from One_Tab to Wkb's -> One_Tab each Wbk

    Hi, marreco,

    instead of pushing the thread you should go through to find out if all necessary information is delivered: where is the code located, where are the workbooks located, is there more than one worksheet in each workbook, where do the names for these come from, are they identical to the names in Column B of the distribution workbook?

    Code is untested:
    Please Login or Register  to view this content.
    And it really would be helpful if you provided all subs referred to in the code you posted.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

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

    Re: One_Wbk from One_Tab to Wkb's -> One_Tab each Wbk

    Hi. i try explanation.

    look my picture file, maybe you understand..


    Thank you!!
    Attached Images Attached Images

  7. #7
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: One_Wbk from One_Tab to Wkb's -> One_Tab each Wbk

    Hi, marreco,

    these are just two minor changes which you could have figured out by yourself as they have been useed in the opening of the workbook.

    Instead of
    Please Login or Register  to view this content.
    the code should read like
    Please Login or Register  to view this content.
    And for the other part it was
    Please Login or Register  to view this content.
    and it should be
    Please Login or Register  to view this content.
    But Iīm afraid the graphic does not explain how to handle the case of misstyping or additional spaces or the situation if no workbook would be present.

    Ciao,
    Holger

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

    Re: One_Wbk from One_Tab to Wkb's -> One_Tab each Wbk

    Thanks, but i have 130 files to open, is possible open paste each files and close files (in background)?

  9. #9
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: One_Wbk from One_Tab to Wkb's -> One_Tab each Wbk

    Hi, marreco,

    the information about the number of files would have been essential on the opening post as that would have definitely kept me away from even thinking about any kind of solution. I donīt have a clue on what you are trying to achieve and why you think it must be done the way that you ask it to be done, and Iīm lost if I canīt spot that well. There may be other ways to solve your problem but Iīm afraid I canīt see them as no information about the whole project has been given.

    is possible open paste each files and close files (in background)
    Not as far as I know because you would have to use that for the whole instance which would lead to the same pitfall: the idea might work for say 10 to 20 files but with more you would need to implement some API and a loop to determine if the workbook to write to has been closed in order to proceed with the next workbook.
    And working with a second or more instances of Excel would maybe solve the problem to hide the instance in the tray but would open up the problem of copying between these instances as you may not directly do that between two or more instances (if I remember correctly). And you would have to spot the closing of each opened file as well (especially in only one other instance).

    I still donīt understand if you want to copy over just the information from the main workbook (and delete the present data prior to that) or if you want to amend the data (which would ask for a logic to exclude duplicates).

    Ciao,
    Holger

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

    Re: One_Wbk from One_Tab to Wkb's -> One_Tab each Wbk

    my friend I'll give up this topic.
    Thank you for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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