+ Reply to Thread
Results 1 to 3 of 3

Importing specific cells from multiple workbooks in daily folders

  1. #1
    Registered User
    Join Date
    07-10-2014
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    13

    Importing specific cells from multiple workbooks in daily folders

    Hi

    I have got 9 spreadsheets which are created each day by someone else that detail how many types of each consignment we have for delivery that day for a specific customer.

    I have to go in each day and total up the figures from all 9 spreadsheets. I would like to try and automate this process as much as possible.

    The spreadsheet layout is always the same and so is the file name. The only bit that changes is the folder.

    Is it possible that something can be written in VBA where a user can specify the folder name and then insert the rest as standard? E.g. insert a function like ='\\Network location\(user specified folder name)\[Filename.xls]Sheet1'!$B$17

    Apologies for any typos, I've sent this from my phone

    Regards
    Jason

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Importing specific cells from multiple workbooks in daily folders

    I'd take a look at the links, so link the cells into one file you know, but recording a macro, then pick the code produced apart, and change to allow the file location to come from a cell.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    07-10-2014
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    13

    Re: Importing specific cells from multiple workbooks in daily folders

    Hi

    Thanks for your hint on a potential solution. I have found quite a user friendly solution which has worked well for me.

    All of the cells that I need to link are set up as \\network location\(daily folder name)\[File names 1-9.xls]Sheet1!$A$1 for example.

    I found that I could specify the current folder name in one cell, add the new folder name in another cell, and run a vba macro to find and replace the old folder name with the new folder name. That then updates all of the references in all of the cells and helpfully updates the old folder name cell as well. All I have to do is put the folder name in that I want to update to, run the macro and it gets all the data, then keep adding folder names that I want to update etc.

+ 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. autosum specific cells across multiple workbooks as they are added
    By juriemagic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2014, 07:27 AM
  2. possible to check for file in multiple folders, then check for values in specific cells?
    By mattheritage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2014, 08:33 AM
  3. [SOLVED] Importing a specific range of cells from multiple workbooks to a single workbook
    By exangel7 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-22-2013, 02:41 PM
  4. Macro to extract data from multiple workbooks, specific sheet, specific cells
    By crissandraauree in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2012, 03:54 PM
  5. [SOLVED] linked cells to workbooks in different folders
    By Luigi in forum Excel General
    Replies: 0
    Last Post: 01-25-2006, 12:25 PM

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