+ Reply to Thread
Results 1 to 6 of 6

Copy Range All Sheets from Closed Workbook

  1. #1
    Registered User
    Join Date
    06-03-2015
    Location
    Houston, Tx
    MS-Off Ver
    2010
    Posts
    64

    Copy Range All Sheets from Closed Workbook

    Whats up everyone?

    I'm looking for a macro that will allow me to select a workbook that is closed via dialog box.

    I need to copy range("D3:H67") from closed workbook, and paste it to range("D3:H67") of active workbook
    I need it to do this for all sheets that have data in that range.

    I've tried several things and couldn't yield the results I was looking for.

    Thanks,
    Jonathan

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Copy Range All Sheets from Closed Workbook

    Hi Jonathan. If you have multiple sheet with data in that range and copy each of them to D3:H67 one range of data will overwrite the previous one. Could you please clarify?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    06-03-2015
    Location
    Houston, Tx
    MS-Off Ver
    2010
    Posts
    64

    Re: Copy Range All Sheets from Closed Workbook

    Yes it could overwrite which isn't a concern.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Copy Range All Sheets from Closed Workbook

    If it isn't a concern, then your final outcome in the active workbook will be the data from the last sheet in the closed workbook. If this is the case, then it is pointless to as you say in your original post:
    do this for all sheets that have data in that range
    You would only need to do this for the last sheet, not all sheets. Am I interpreting correctly what you want to do?

  5. #5
    Registered User
    Join Date
    06-03-2015
    Location
    Houston, Tx
    MS-Off Ver
    2010
    Posts
    64

    Re: Copy Range All Sheets from Closed Workbook

    It would have to be from the first sheet to the last sheet with data.

    It doesnt matter to me if it loops through all sheets.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Copy Range All Sheets from Closed Workbook

    Try:
    Please Login or Register  to view this content.
    Change the folder path to suit your needs.

+ 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. [SOLVED] Code to copy data from a closed workbook and paste in active workbook using named range.
    By paullie1912 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2014, 02:38 AM
  2. Copy 2 sheets from a open workbook and paste to a closed workbook
    By grimston in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-27-2012, 03:27 PM
  3. Excel 2007 : Copy Range From Closed Workbook
    By marzook in forum Excel General
    Replies: 1
    Last Post: 01-06-2011, 08:01 AM
  4. Copy sheets from closed workbook
    By heinz1218 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2009, 11:48 AM
  5. Use VBA to copy named range from a closed workbook?
    By Phraedrique in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-17-2009, 09:39 AM
  6. copy sheets from closed workbook
    By blackvba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2008, 06:08 PM
  7. [SOLVED] Possible to copy sheets into another (closed!) workbook?
    By Grotifant in forum Excel General
    Replies: 5
    Last Post: 02-23-2005, 05:06 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