+ Reply to Thread
Results 1 to 11 of 11

combine multi workbooks into one master workbook but I want to combine only sheet 3

  1. #1
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    combine multi workbooks into one master workbook but I want to combine only sheet 3

    Hi,
    I want to combine multi workbooks into master workbook but I want to combine only sheet3.
    Multi workbooks have the same type.
    Could you give me any advice?
    Thanks

  2. #2
    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: combine multi workbooks into one master workbook but I want to combine only sheet 3

    Hi, Goodstart14,

    Could you give me any advice?
    I´m sure you won´t like the answer: use the search in this forum or google/delta/bing?

    WBs to 1 Sheet or Merge data from all workbooks in a folder provide the basic codes and maybe must adapted for only doing so on a speical worksheet (either name or position inside workbook - I´d prefer the name of the sheet anyhow).

    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

  3. #3
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: combine multi workbooks into one master workbook but I want to combine only sheet 3

    Please Login or Register  to view this content.
    Thank you so much!!
    I know I need to study more but...
    Could you check this code? I don't know what is wrong.
    Thanks
    Last edited by Goodstart14; 12-20-2013 at 03:22 AM.

  4. #4
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: combine multi workbooks into one master workbook but I want to combine only sheet 3

    Sorry.
    I did

  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: combine multi workbooks into one master workbook but I want to combine only sheet 3

    Hi, Goodstart14,

    I wouldn´t use Path as a Variable. You should consider to use Option Explicit when using code as that would have told you about the variables you used without dimming / filling them.

    Please Login or Register  to view this content.
    Ciao,
    Holger

  6. #6
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: combine multi workbooks into one master workbook but I want to combine only sheet 3

    Quote Originally Posted by HaHoBe View Post
    Hi, Goodstart14,

    I wouldn´t use Path as a Variable. You should consider to use Option Explicit when using code as that would have told you about the variables you used without dimming / filling them.

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Thank you so much!!
    I tried this code and message box camp up. It says Excel couldn't find the path.
    These multi workbooks are protected by all same password.
    Do you think this cause the problem?
    If this is, how I can unprotected this workbooks?

    Thanks in advance!

  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: combine multi workbooks into one master workbook but I want to combine only sheet 3

    Hi, Goodstart14,

    upps - my bad, did correct all the varibales as I should have done.

    Please Login or Register  to view this content.
    You need not quote full posts.

    CIao,
    Holger

  8. #8
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: combine multi workbooks into one master workbook but I want to combine only sheet 3

    Thanks

    I got "Option explicit" but I had to define "Path", so I put Dim Past As String in your code.

    ***************************
    Sorry, I tried again and it worked.
    This code import each Sheet3 in masterExcel's each sheet, like Sheet3(3), Sheet3(2), and Sheet3(1).
    These multi excel spreadsheets are protected by password but it seems it doesn't care.

    Once I import Sheet3, then I want to these excel spreadsheets in "Imported" folder so I don't import twice.
    How can I achieve this?

    Thanks
    Last edited by Goodstart14; 12-20-2013 at 03:38 PM.

  9. #9
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: combine multi workbooks into one master workbook but I want to combine only sheet 3

    Hi,

    Have a look at this solution that is in line with you requirement.

    http://www.excelforum.com/excel-prog...ml#post3515486
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  10. #10
    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: combine multi workbooks into one master workbook but I want to combine only sheet 3

    Hi, Goodstart14,

    moving the files may be done like this:
    Please Login or Register  to view this content.
    The protection of a worksheet does not matter when copying - it just remains intact. If you want the sheets unprotected you may run another routine after importing like
    Please Login or Register  to view this content.
    Ciao,
    Holger

  11. #11
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: combine multi workbooks into one master workbook but I want to combine only sheet 3

    Thanks!!
    sorry for late response.
    I was out of town.
    Thanks again!

+ 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: 5
    Last Post: 02-25-2013, 08:21 AM
  2. Excel 2010 : Combine Multiple Workbooks into One Master Workbook
    By tehjagjr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2013, 05:07 PM
  3. Combine (3) Workbooks to Master Sheet
    By ssteines in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2011, 04:00 PM
  4. SCript to combine two workbooks by multi Criteria
    By cmcconna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2007, 05:38 PM
  5. [SOLVED] Combine workbooks into one master workbook.
    By EKB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2006, 06:15 AM

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