+ Reply to Thread
Results 1 to 6 of 6

How to retrieve the values of cells (with the same address) of many Excel files

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003 Excel 2010
    Posts
    189

    How to retrieve the values of cells (with the same address) of many Excel files

    Hi, I have many files from the same model: XX01.xls, XX02.xls, ... XX99.xls

    I want to get the values of cell at the address of Sheet1!C10 for all these files. I can do it manually one by one, but this involves so much trouble.

    Is there a clever way to do it? thanks.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to retrieve the values of cells (with the same address) of many Excel files

    put the attached file in the same folder as your files.

    Open it and stand back.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003 Excel 2010
    Posts
    189

    Re: How to retrieve the values of cells (with the same address) of many Excel files

    Hi, mehmetcik, the macro really worked perfectly. That is exactly what I want to achieve. Thank you.

    Certainly the macro is useful for me and others to learn and build from there

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003 Excel 2010
    Posts
    189

    Re: How to retrieve the values of cells (with the same address) of many Excel files

    Hi, sorry to re-open this thread. I have two questions:

    1) I ran the macro and found some of the sources file are automatically opened during the process of fetching data.

    2) If some source files do not have the 'Sheet1' tab, then the macro failed with an error.

    Can the macro be improved for the two questions? Thank you

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to retrieve the values of cells (with the same address) of many Excel files

    Replace your Macro with this version.

    It may help

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003 Excel 2010
    Posts
    189

    Re: How to retrieve the values of cells (with the same address) of many Excel files

    Hi mehmetcik, it worked perfectly. Thanks for the improved code. Really impressive

+ 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: 4
    Last Post: 04-10-2014, 12:11 PM
  2. VBA in Excel: define file to open (I retrieve data from 2 Excel files)
    By zeno1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2012, 12:19 PM
  3. Replies: 3
    Last Post: 02-02-2012, 08:46 AM
  4. Help - retrieve cell address
    By ppbedz in forum Excel General
    Replies: 5
    Last Post: 04-17-2006, 05:50 PM
  5. How can VBA retrieve user's IP Address
    By KSMorris@comcast.net in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2005, 04:05 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