Results 1 to 10 of 15

Thread: Merging Data from many workbooks in to one workbook

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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. #2
    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. #3
    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

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
  •