+ Reply to Thread
Results 1 to 2 of 2

VBA code to validate formula cells and do condition check in closed workbooks

  1. #1
    Forum Contributor
    Join Date
    02-28-2016
    Location
    australia
    MS-Off Ver
    2019
    Posts
    194

    VBA code to validate formula cells and do condition check in closed workbooks

    Dear experts!!

    Goodmorning

    I have list of workbooks stored in path. i want vba to do validate in column with formulas updates and conditional check in U:AA column.

    i have updated formulas in column of U,V,W,X,Y,Z where need to validate with formula.
    U = =IF(AND(H2="LABOR ONLY",AC2="RELEASED"),"",IF(AND(H2="LABOR ONLY",AC2="PENDING"),"",IF(S2="","",TODAY()-S2)))
    V = =IFERROR(IF(H2="ZSP1",AD2,IF(H2="ZLAB",AE2,IF(H2="LABOR & PART",AD2,IF(AND(H2="LABOR ONLY",AA2=""),AE2,TODAY()-AA2))))," ")
    W = =IFERROR(IF(AF2="",CLEAN(IF(TODAY()-S2>=30,"G >30 Days",IF(TODAY()-S2>20,"F 21-30 Days",IF(TODAY()-S2>15,"E 16-20 Days",IF(TODAY()-S2>10,"D 11-15 Days",IF(TODAY()-S2>=5,"C 6-10 Days",IF(TODAY()-S2>3,"B 3-5 Days","A 0-2 Days"))))))),CLEAN(IF(AF2>=30,"G >30 Days",IF(AF2>20,"F 21-30 Days",IF(AF2>15,"E 16-20 Days",IF(AF2>10,"D 11-15 Days",IF(AF2>5,"C 6-10 Days",IF(AF2>3,"B 3-5 Days","A 0-2 Days"))))))))," ")
    X = =IFERROR(IF(AG2="","PND","TATA")," ")
    Y = =IFERROR(IF(S2="","",CLEAN(IF(TODAY()-S2>=30,"G >30 Days",IF(TODAY()-S2>20,"F 21-30 Days",IF(TODAY()-S2>15,"E 16-20 Days",IF(TODAY()-S2>10,"D 11-15 Days",IF(TODAY()-S2>=5,"C 6-10 Days",IF(TODAY()-S2>3,"B 3-5 Days","A 0-2 Days"))))))))," ")
    Z = =IF(OR(S2>=DATEVALUE("06/30/2015"),S2=0),G2,"999")

    i want check those formulas are valid and whereever formula not filled OR keep as blank cell
    those cell are highlighed as yellow.
    condition check1 in column Z where the formula not contain with 06/30/2015 date those column need to fill by yellow color.
    condition check2 whereever result GE100 in Z those column need to fill by red
    condition check3 Column AA = #N/A and M >0.00 those column need to fill by yellow.
    and i want run code from VBA_run file. i want give reference cell to Path(B3) and Date check (B2) of column Z:Z , then found & list out in D2 which are files found error from vbe running file.

    please find the attachment
    Attached Files Attached Files
    Last edited by johnmacpro; 07-11-2016 at 07:21 AM. Reason: reason

  2. #2
    Forum Contributor
    Join Date
    02-28-2016
    Location
    australia
    MS-Off Ver
    2019
    Posts
    194

    Re: VBA code to validate formula cells and do condition check in closed workbooks

    Any Experts help on this?

+ 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. Update closed workbooks & check if already open
    By Desauv86 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-25-2016, 08:57 AM
  2. Sum same cells - closed workbooks - different folder
    By Gjanus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2016, 07:01 AM
  3. Breakdown of code for referencing data in closed workbooks
    By gill948 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2011, 12:29 PM
  4. how to add rows to code which retrieves data from closed workbooks?
    By Stasi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2010, 03:38 AM
  5. check if condition is true in closed workbooks
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2009, 03:29 PM
  6. Referencing cells in closed workbooks
    By sastefan in forum Excel General
    Replies: 1
    Last Post: 03-01-2006, 01:10 PM
  7. Replies: 6
    Last Post: 02-21-2006, 04:25 AM

Tags for this Thread

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