+ Reply to Thread
Results 1 to 6 of 6

make numerous workbooks open in excel

  1. #1
    Registered User
    Join Date
    11-04-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    11

    make numerous workbooks open in excel

    I'm working on a macro that copies certain data from the "full holdings" spreadsheet of about 10 different spreadsheets and puts it on the same number of worksheets within a single workbook called test-script. I need to then copy and paste additional data from the 10 workbooks and paste the additional data on to the 10 worksheets in the test-script workbook. I'm using a macro that goes through a list of names found in the test-script workbook. The first time I do the copy and past is pretty easy because my macro opens the 10 workbooks are active when they are open. The problem is making them active for the second time I need to copy data from the 10 open workbooks.

    Here's the macro so far. All I need is code for making the 10 workbooks opens
    Please Login or Register  to view this content.

    Now i need to activate the source workbooks.
    Last edited by Tom123; 11-11-2011 at 04:34 PM. Reason: Added Code Tags

  2. #2
    Registered User
    Join Date
    11-04-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: make numerous workbooks open in excel

    Here's the workbook that has the macro. The list of source workbooks is only two to simplify development, but I'm going to include at least 10 source workbooks in the final macro

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: make numerous workbooks open in excel

    Hi Tom
    I'd assume you intended to attach a workbook
    Here's the workbook that has the macro
    I don't see it.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    11-04-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: make numerous workbooks open in excel

    here's the workbook
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-04-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: make numerous workbooks open in excel

    Hello everyone. I have resolved my issues. It may not be an eloquent solution, but it works. Here's what I did. I realized that the first time my macro opened up the 10 worksheets that it made the sheets "active" so that I could highlight data and sort it, copy it and put it on my final workbook. I could figure out how to activate the 10 workbooks, however, which I needed to do to sort the data a second time in reverse order, highlight the results, copy and paste it into my final workbook. Then, I realized that I did know how to active the source works. That is, by opening the workbooks, I make them active, so I put in a command to close all of the open workbook (except for my main workbook) and then another command to open the 10 source workbooks, thereby making the workbooks active! I have completed my macro and am very excited about no long having to manual type in 800 points of data into the text documents that I write on a quarterly basis!

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: make numerous workbooks open in excel

    Hi Tom
    Good for you. It's always gratifying when one resolves one's own issue. If your needs are satisfied please mark your Thread as SOLVED.

+ 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