+ Reply to Thread
Results 1 to 4 of 4

msg box to display if date expired

  1. #1
    Forum Contributor
    Join Date
    04-08-2008
    Posts
    121

    msg box to display if date expired

    Hi,

    I have a tracking system in excel where I've got a planned and an actual date for each stage in a project so each stage has to be done in order.

    At several points in the project, meetings are set up accordingly: in the Second Tuesday of every 4 week period. So at the start of the project a provisional date is set up for each meeting.

    I want a message box to display if the date is after that date like "Please review meeting date" , if that scheduled meeting has been missed.

    Is there a way of doing this using VBA?

    Please see attached sheet with more details.

    Any help would be much appreciated

    Many thanks
    Harry
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    place this code in the WorkBook_Open event and it will check the dates each time the workbook is opened
    Please Login or Register  to view this content.
    Or you could do this with Conditional Formatting & no VBA
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    04-08-2008
    Posts
    121

    msg box if date is overdue

    Roy,

    Thanks for the feed back. I couldn't actually get this to work. I copied the code into a new module.

    Ideally I'd like the message to show at all times when the dates change, instead of clicking a button.

    Data validation was a possibility but you have to be clicking on the cell for the message to show?

    Did you say there is a way of doing it with conditional formatting? If so how would I do it? There are about 6 cells which I want messages showing at the same time if the date in that cell goes over due.

    Many thanks
    Harry

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    The code that i gave you goes in the Workbook_Open event so that it is triggered when the workbook opens.

    You could use conditional Formatting to hihlight cells with a different colour if a date has passed.

    This example highlights the adjacent cell when the date is passed, also displays a message in a cell.
    Attached Files Attached Files

+ 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. search for max date and display other cell value
    By cdavenpo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2008, 05:25 PM
  2. looping issues
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2007, 11:42 PM
  3. Specific Date Display
    By Hoopsah in forum Excel General
    Replies: 4
    Last Post: 08-10-2007, 07:37 AM
  4. display date in date format
    By nygwnj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2007, 11:32 PM
  5. Getting date to display after number input
    By Hemmiv in forum Excel General
    Replies: 15
    Last Post: 11-27-2006, 09:51 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