+ Reply to Thread
Results 1 to 8 of 8

Pull specific data's from variable and closed workbooks over network

  1. #1
    Registered User
    Join Date
    03-10-2016
    Location
    Timisoara
    MS-Off Ver
    2010
    Posts
    6

    Pull specific data's from variable and closed workbooks over network

    Hi,

    I'm struggle for some days to do mainly what i have said above in the title. In one workbook, i want to pull some data from multiple and variable workbooks over the network. This last workbooks can change over the time, but all the time, they will have the same format of the worksheet. They are one template but with different data and different names. Filenames i have pull them in my report file and now base on this i want to pull also some data's inside of them. Of course this files are closed. I've tried with INDIRECT function, but it works only if the files are open, so is not working for me. I'm not so familiar with vba, only that i know here is laying my resolving. I have attached one example of my report file. Could someone give me some hints?!?! Perhaps there is something could work with formulas...Otherwise if someone is kind and help me with the vba code...?!?! I'll kindly appreciate. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pull specific data's from variable and closed workbooks over network

    If all data is in the same directory you can use this VBA code.

    It will copy the range you selected to a new workbook.

    You have to amend the red text to your situation.


    Please Login or Register  to view this content.
    Last edited by oeldere; 05-24-2020 at 07:37 AM.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-10-2016
    Location
    Timisoara
    MS-Off Ver
    2010
    Posts
    6

    Re: Pull specific data's from variable and closed workbooks over network

    Hi. I'll check it and come back with input. One remark. I have two folders over the network where it should look, depending by the name of the filename in my report. But i'll check it as it is and reply to you later. Thank you.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pull specific data's from variable and closed workbooks over network

    There will be a better way, since I am not a VBA expert, but in that case I would run the code twice (with a differant directory name).

  5. #5
    Registered User
    Join Date
    03-10-2016
    Location
    Timisoara
    MS-Off Ver
    2010
    Posts
    6

    Re: Pull specific data's from variable and closed workbooks over network

    I've checked your code, is doing mainly what you have said above, only that:
    1. i already have myreportfile.xls(close to the one i've attached at the beginning of this thread). So, i don't want to generate a new workbook, i want to drop all the values in this Main workbook report.
    2. i want only some specific data's from all the files-templates over the network. For instance, i want to check some cells where is mentioned Start Date and Due Date. For all the files over the network i want to check for this dates and drop them in my report in two separate columns.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pull specific data's from variable and closed workbooks over network

    Did you tried to run the code?


    If you only want that range (D10:E10) you can change that in:

    Set sourceRange = .Range("D10:E10")

  7. #7
    Registered User
    Join Date
    03-10-2016
    Location
    Timisoara
    MS-Off Ver
    2010
    Posts
    6

    Re: Pull specific data's from variable and closed workbooks over network

    Yes, i run it. I noticed now that i've missed this. Anyway, i'm not so familiar at all with vba, this could be the reason. Thanks.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pull specific data's from variable and closed workbooks over network

    After you change the range (and directory), the code is working for you?

+ 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] How to pull and summarize data from multiple closed workbooks?
    By ChrisHook in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-06-2015, 04:52 PM
  2. Pull data from closed workbooks
    By sdgenxr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-01-2015, 08:56 PM
  3. Pull Data From Same Cell And Multiple Closed Workbooks
    By jdesilva in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2015, 01:07 AM
  4. [SOLVED] VBA to pull data from multiple closed workbooks
    By keith740 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 07-01-2015, 08:30 PM
  5. Replies: 1
    Last Post: 09-06-2005, 12:05 PM
  6. Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  7. Replies: 1
    Last Post: 06-22-2005, 11:05 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