+ Reply to Thread
Results 1 to 4 of 4

Macro to check date range against criteria

  1. #1
    Registered User
    Join Date
    08-31-2019
    Location
    Bangalore
    MS-Off Ver
    O365
    Posts
    27

    Macro to check date range against criteria

    I need VBA code to check each weekday date in a date range against a table in another sheet, if the corresponding value is >9% for any of the days, it should return a msg box

    i.e, in the "Leave Request Template", the code should check each of the weekdays for the range given in B7 and B9, against the "Master" worksheet in "Leave Tracker Master" sheet, if the corresponding value for any one date in the "Total" column is >9%, it should return a msg box
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-31-2019
    Location
    Bangalore
    MS-Off Ver
    O365
    Posts
    27

    Re: Macro to check date range against criteria

    I wrote this code for the check, but it returns a type mismatch error, can someone help?? I get the type mismatch error in this line
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-31-2019
    Location
    Bangalore
    MS-Off Ver
    O365
    Posts
    27

    Re: Macro to check date range against criteria

    I even tried
    Please Login or Register  to view this content.
    this doesn't give an error but it doesn't perform the check and runs the rest of the macro, someone help me please, I'm just a beginner and am going crazy trying to figure this out !!

  4. #4
    Registered User
    Join Date
    08-31-2019
    Location
    Bangalore
    MS-Off Ver
    O365
    Posts
    27

    Re: Macro to check date range against criteria

    Figured it out !!! It was returning an error

    Please Login or Register  to view this content.

+ 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] Check for date in range with multiple criteria
    By ORoos in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2021, 08:36 AM
  2. Replies: 5
    Last Post: 10-03-2016, 03:39 AM
  3. Hotel Check in and Check out range date report
    By sharky123 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 08-30-2016, 11:19 AM
  4. Check a date range and return value based on the date range
    By KeithCar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-13-2015, 12:55 PM
  5. excel formula help to get date from range as per check criteria
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2013, 06:03 AM
  6. Macro, autofilter, delete rows outside date range, defined names as criteria
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2011, 04:10 AM
  7. Macro to check range, if false check another range until true, then copy
    By jayers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2009, 04:19 PM

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