+ Reply to Thread
Results 1 to 3 of 3

possible to check for file in multiple folders, then check for values in specific cells?

  1. #1
    Registered User
    Join Date
    03-02-2013
    Location
    MT, US
    MS-Off Ver
    Excel 2003
    Posts
    3

    possible to check for file in multiple folders, then check for values in specific cells?

    Hello,

    I have another thread posted that is similar, but this is a separate issue that I would love some help with.

    I would like to check multiple folders for a certain file based on the date (current daily report filed in different folders based on the month/year. In other words we do a daily report and save it in a folder based on year/month. IE ...\2014\January\DailyReport_1.2.14.xlsm. In this report is a range of cells that show if certain safety drills are current. I would like to have excel find the current days file, look at the drills section to see if a drill is current or not, and then show a different state bases on the answer (true/false?)

    Can someone point me in the right direction of how to begin doing this? Is it possible? Any specific code examples would be fantastic!

    Thanks so much,

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: possible to check for file in multiple folders, then check for values in specific cell

    This example code opens the DailyReport based on Today's date. Change the root directory ("C:\Reports\") to suit.

    Please Login or Register  to view this content.

    The description of what you want done with the DailyReport is too vague to follow.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    03-02-2013
    Location
    MT, US
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: possible to check for file in multiple folders, then check for values in specific cell

    Hey AlphaFrog, thank you for the response. I appreciate your time.

    I'll try to explain more clearly, what Im trying to do.

    I am making a dashboard that will display on our desk tops in remote offices (all of our offices are remote) to display pertinent information and links to routinely used folders. One of the things on this dashboard will be a list of safety drills. I want to make an icon sitting next to each drill change based on if that drill is up to date or not. I envision a little stop light icon that is red if the drill is out of date and needs to be done, or green if the drill is up to date.

    What I want to do is figure out how to have excel look at the value in a specific cell in the current daily report. Then change a conditional macro on my dashboard based on the value in that cell. One thing I need to mention is that the reports are based on the activity of the previous day and named accordingly. In other words todays report is named with yesterday's date. The daily reports will be saved in different folders based on the year and month it is done in. IE C:.../DailyReports/2014/January/DailyReport_1.3.14.xmls. Where the year and month folder will change as time goes on. So I don't want to open the file... I just want to check for a value in a certain cell in the file (IE Sheet name = summary, cell = C42) and then run a macro based on what that value is. One of the things I'd like it to do is constantly check so that the status icon changes in real time.

    I hope that makes better sense. And again, I really appreciate your time.
    Last edited by mattheritage; 01-04-2014 at 08:42 AM.

+ 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] Ignore If Blank & check multiple cells for equal values
    By Urugmo88 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-25-2013, 04:46 AM
  2. Replies: 5
    Last Post: 08-04-2013, 09:49 AM
  3. [SOLVED] Cells values to be check and replace with specific text
    By amolryeolekar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2013, 02:44 AM
  4. Check the length and value of specific columns and comparion check between two sheets
    By sravanthi.boggaram in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2011, 06:51 AM
  5. Check range of cells for multiple values.
    By proepert in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-20-2010, 01:17 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