+ Reply to Thread
Results 1 to 6 of 6

vba code for matching criteria and dates the dont change

  1. #1
    Forum Contributor
    Join Date
    02-24-2017
    Location
    london
    MS-Off Ver
    OFFICE 365
    Posts
    105

    vba code for matching criteria and dates the dont change

    Hi all i need a vba which records date when criteria is meet or returns the word "pending" when the criteria is not meet

    the criteria is when cells in column j to columns m are full return date confirmed otherwise return "pending"

    i tried a formula in the cell but unfortunately every time you open the workbook it returns todays date as per the formula i guess =today()

    any help would be greatly appreciated

    Kind Regards
    Steddas
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: vba code for matching criteria and dates the dont change

    Hi,
    i tried editing your file but the worksheet was protected and it had its own macro triggered by movements in the worksheet. You may want to try this code:

    Please Login or Register  to view this content.
    this code will require that there are no blank rows under column "Confirmed", and that the worksheet maintains its name. If you need to change the worksheet name, you'll need to change the range in the code.
    Please let me know if you get into issues
    don't worry, there's a lot of people that are far more confused than you
    but if you liked what i suggested. Click for me the "Add Reputation" - that way, we'd be both happy.

  3. #3
    Forum Contributor
    Join Date
    02-24-2017
    Location
    london
    MS-Off Ver
    OFFICE 365
    Posts
    105

    Re: vba code for matching criteria and dates the dont change

    Hi there thanks for your help the code is EGLK to unlock

    i had some help from other users on the coding last week just forgot about the date it was confirmed always updating because its in a formula

  4. #4
    Forum Contributor
    Join Date
    09-23-2007
    Location
    Melbourne, Australia
    Posts
    176

    Re: vba code for matching criteria and dates the dont change

    See below:
    The workbook with the macro inserted is attached.
    The name of the macro is return_date

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by danny2000; 05-24-2018 at 12:20 PM.
    If this has helped you please set this question to 'SOLVED'.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: vba code for matching criteria and dates the dont change

    steddas, how is this thread any different from
    https://www.excelforum.com/excel-pro...ml#post4904806
    or from your other thread?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    02-24-2017
    Location
    london
    MS-Off Ver
    OFFICE 365
    Posts
    105

    Re: vba code for matching criteria and dates the dont change

    sorry i was using 2 computers and didnt see the reply from danny 2000

    also i wasnt aware of the 3 question forum rule sorry guys

+ 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. Overlapping Dates by Matching Criteria
    By hkdata in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-18-2018, 02:34 PM
  2. [SOLVED] Dont trigger code if -1 column of target column has already value Worksheet change event
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2017, 08:41 AM
  3. [SOLVED] Dont trigger code if i delete some value from range Worksheet change event
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2017, 07:48 AM
  4. Matching Criteria from adjacent dates
    By pickslides in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-06-2013, 11:37 PM
  5. Replies: 1
    Last Post: 06-18-2013, 06:32 PM
  6. Count if between two dates and matching criteria
    By RichST in forum Excel General
    Replies: 2
    Last Post: 10-12-2010, 07:55 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