+ Reply to Thread
Results 1 to 3 of 3

Read through workbooks in a folder

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    Norge
    MS-Off Ver
    Excel 2007
    Posts
    2

    Read through workbooks in a folder

    Hello

    I'm using a slightly modified code that I found on this forum, to look through all the .xlsm files in a folder, but I need help to access specific cell in two different sheets.

    Please Login or Register  to view this content.
    This bit of code works wonders as long as there is only one sheet I have to pull data from.
    The problem arises when I need to access data from sheet2. As the loop is now, it does all the calculations on each sheet and I don't really know how to specify what sheet to draw information from.


    I've edited the code below to reflect what cell that should be accessed on each sheet.
    Please Login or Register  to view this content.
    Any help would be greatly appreciated.
    Last edited by Christoffer_A; 02-27-2014 at 09:39 AM. Reason: Solved

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Read through workbooks in a folder

    try:
    Please Login or Register  to view this content.
    If you need to develop it further (several sheets) then instedad of
    Please Login or Register  to view this content.
    better construction would be
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    02-27-2014
    Location
    Norge
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Read through workbooks in a folder

    Thanks!
    That worked like a charm, and I'll look into the case construction.

+ 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 read from different excel files in a folder
    By jsrakesh4u in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-22-2013, 05:44 AM
  2. create a compressed folder or zipped folder then copy workbooks to it.
    By Ironman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-04-2012, 03:56 PM
  3. macro to delete a read-only file from a folder
    By jojotherider in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2008, 08:13 PM
  4. [SOLVED] Read folder access rights
    By Eric van Uden in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2005, 01:05 PM
  5. How do I save a read only file or folder?
    By Dick in forum Excel General
    Replies: 3
    Last Post: 03-04-2005, 12: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