+ Reply to Thread
Results 1 to 3 of 3

Date test VBA - Very easy

  1. #1
    Registered User
    Join Date
    01-08-2014
    Location
    wigan
    MS-Off Ver
    2007
    Posts
    78

    Date test VBA - Very easy

    Hi this is a really easy one but I don't know how.

    Basically I want to add vba on workbook open that will do a date test and show a msg box. I know the workbook_open part and msg box and if this were a formula I would be fine.

    Test:

    if todays date is greater than **cell a1** then
    msgbox "XXXX"

    thanks,
    dan.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,651

    Re: Date test VBA - Very easy

    Try like this.......
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

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

    Re: Date test VBA - Very easy

    Include the worksheet qualification as well.

    Please Login or Register  to view this content.
    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.

+ 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] Easy way of inputting date
    By bigtiger1 in forum Excel General
    Replies: 6
    Last Post: 03-08-2014, 08:00 AM
  2. [SOLVED] Easy date function help
    By gtaaccord in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-11-2013, 12:16 PM
  3. Add date to a cell with a click...Easy one...
    By Aus_Dex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2011, 09:16 PM
  4. Pull sub-test scores from test w/best overall test score (PSAT)
    By PowerSchoolDude in forum Excel General
    Replies: 0
    Last Post: 11-19-2009, 08:29 PM
  5. Easy Question - Automate date
    By eholtman in forum Excel General
    Replies: 3
    Last Post: 03-03-2005, 02:57 PM

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