+ Reply to Thread
Results 1 to 8 of 8

Pop out msgbox whenever expiry date is today and cancel if action done.

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Pop out msgbox whenever expiry date is today and cancel if action done.

    This is a sample of my Loan Excel. Column A=Bank, B is Issue date. C is End Date. D is amount. E is remark.Because we have to do quite a lot of paper work whenever we have to repay the loan. Hence i created a Action done column in F.

    Basically, what i want is whenever someone open and close the file, and if there is a date=today in Column D. It will pop a message and show its respective Remark in E. UNLESS the word "done" is already in its respective column F.
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Pop out msgbox whenever expiry date is today and cancel if action done.

    Like this

    Please Login or Register  to view this content.
    Last edited by mike7952; 04-04-2017 at 03:06 AM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Pop out msgbox whenever expiry date is today and cancel if action done.

    Try in attached file

    Message string is built up line by line and reported at the end
    Condition amended to <= today's date
    Validation added to column F to ensure word "Done" is always used

    VBA is in the workbook Module.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kev_; 04-04-2017 at 03:17 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Pop out msgbox whenever expiry date is today and cancel if action done.

    If you want to prevent the file from closing until the sheet is amended
    Put this line at the TOP of the module before any macros (retain the last value in the variable)
    Please Login or Register  to view this content.
    and add a line to the before close macro:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Pop out msgbox whenever expiry date is today and cancel if action done.

    Hey, its good. But how do i make the msgbox reference to the Remark Column (E) instead of juz the column number?

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Pop out msgbox whenever expiry date is today and cancel if action done.

    Replace one line:
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Pop out msgbox whenever expiry date is today and cancel if action done.

    Quote Originally Posted by kev_ View Post
    Replace one line:
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    Thanks!!!!

  8. #8
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Pop out msgbox whenever expiry date is today and cancel if action done.

    You are welcome.
    Thanks for marking the thread as solved

+ 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] VBA to Cancel Last Action on Protected Sheet!
    By Keibri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2016, 01:59 AM
  2. [SOLVED] Clear userform if expiry date exceeds Today
    By bqheng in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2015, 09:13 PM
  3. autocalculate expiry date / expiry date colour warnings
    By kimbling1 in forum Excel General
    Replies: 8
    Last Post: 08-27-2014, 02:53 AM
  4. Pop Up Msgbox for Expiry Dates in 3 columns
    By goldenfountain in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2012, 12:43 AM
  5. Action will Cancel Pending Refresh Command
    By mdk5008 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2009, 12:33 PM
  6. Cancel a message box pop up action
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2009, 06:46 PM
  7. Replies: 0
    Last Post: 08-04-2006, 09:50 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