+ Reply to Thread
Results 1 to 4 of 4

Trouble copying data from closed workbook into active workbook, referencing help

  1. #1
    Registered User
    Join Date
    11-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Trouble copying data from closed workbook into active workbook, referencing help

    I am fairly new to VBA and just getting the hang of things. One thing is puzzling me though. I have a large workbook (Hockey Data.xlsx) that has data stored in it and would like to copy data from it into a master workbook (Hockey Master.xlsm) without having to open the large workbook. The workbooks will be used on different computers, so using the path to call the workbooks can't be explicit.

    One workbook is called Hockey Data.xlsx (this contains all of the data)
    The often used active workbook is called Hockey Master.xlsm (this is where the data will be transferred to)

    These workbooks will always be in the same folder, but in different directories for different users (this will be used on multiple computers, not networked). There does not have to be a link between changes from different users (ie Each user can manipulate Hockey Master.xlsm independently on their own computer)
    I'm referring to this because I don't think (C:\User\MyDocuments\Folder\) will be universal for each user. Is there a way to set the parent directory equal to the folder that houses these two workbooks?

    I need a way to call the data from Hockey Data.xlsx without opening it (once again it is large) and pasting it to Hockey Master.xlsm.

    If anyone could help me on this subject I would GREATLY appreciate it! I have been struggling with it for a week or so now with little to no help. Thanks again!

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Trouble copying data from closed workbook into active workbook, referencing help

    Perhaps this link?

    http://spreadsheetpage.com/index.php...a_closed_file/

    Alf

  3. #3
    Registered User
    Join Date
    11-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Trouble copying data from closed workbook into active workbook, referencing help

    Thank you very much Alf! That's exactly what I was looking for! I greatly appreciate it!

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Trouble copying data from closed workbook into active workbook, referencing help

    You are welcome! Thanks for feed back and rep.

    Alf

+ 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] Copying data from a closed workbook into an open workbook ignoring excel filter?
    By reach78 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-17-2013, 12:31 AM
  2. Export data from closed workbook to active workbook with ADO connection
    By Naresh27 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-09-2013, 01:08 PM
  3. Copying rows from multiple closed workbooks to active workbook
    By onbeillp111 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2013, 11:19 AM
  4. [SOLVED] Copying cells from multiple closed workbooks to active workbook
    By Anonym216 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2013, 07:53 AM
  5. Questions on copying range from closed workbook to active workbook
    By stevebriz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2007, 09:45 AM

Tags for this Thread

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