Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Merging Data from many workbooks in to one workbook

  1. #11
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Try this in place of my last code

    Code:
        Application.DisplayAlerts = False
        Do While ThisWorkbook.Worksheets.Count > 2
            ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count).Delete
        Loop
        Application.DisplayAlerts = True
        Set BaseWks = ThisWorkbook.Worksheets(2)
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  2. #12
    Member
    Join Date
    Aug 2011
    Posts
    92
    Rep Power
    14
    Hi, -

    This seems woking fine. However the file i am copying contains password (same password for all files), and this code gives me an debug option about the protected sheets. and highlights .value=.value
    Where shoud i define the password in this code to resolve this.

  3. #13
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Write
    Code:
    .parent.unprotect "passwordhere"
    right before that line
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  4. #14
    Junior Member
    Join Date
    Oct 2011
    Posts
    12
    Rep Power
    0

    check the link in my question

    Hi in the sheet to which their is a link there is a sheet which does exaclty that, Each teacher makes a copy punch his data in and than any one sheet is used to import all of the other data where ever it has been saved usually it is done from a USB stick

  5. #15
    Member
    Join Date
    Aug 2011
    Posts
    92
    Rep Power
    14
    Hi,

    Can you please mention the link only to the file. There are several links in your post.

    Thanks
    Rajesh

Similar Threads

  1. Split Workbook into Separate Workbooks VBA
    By Admin in forum Download Center
    Replies: 12
    Last Post: 08-08-2018, 09:33 PM
  2. Replies: 2
    Last Post: 05-28-2013, 05:32 PM
  3. Replies: 1
    Last Post: 05-09-2013, 08:56 AM
  4. Replies: 2
    Last Post: 12-19-2012, 08:28 AM
  5. Split Closed Workbook into Multiple Workbooks Using ADO
    By ramakrishnan in forum Excel Help
    Replies: 4
    Last Post: 10-02-2011, 08:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •