+ Reply to Thread
Results 1 to 6 of 6

Conditional Pop Up Messages

  1. #1
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Conditional Pop Up Messages

    Hi ...
    Been searching for a while, but can't find a solution.
    Hope this is the right place.

    I have to check a cell (FD20) for three conditions on the cell value.
    It' either 19 (which is correct), or below or above (which is wrong)

    I have tried the simple approach to begin with, like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    When changing the value of cell FD20 either above og below 19, nothing happens.

    I now understand that this VBA thing is beyond my abilities.
    But can someone help me out here?
    Last edited by Tresfjording; 08-07-2017 at 03:38 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Conditional Pop Up Messages

    I think what you need is a worksheet change event so the code is run each time cell FD20 is changed.
    Something like this pasted into the code module (right click the tab name and select "View Code" then paste it in there) should work.
    Please Login or Register  to view this content.
    Note this will only work when you manually update the cell, it will not work when the cell is updated via a formula recalculation.

    BSB

  3. #3
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Conditional Pop Up Messages

    Quote Originally Posted by BadlySpelledBuoy View Post
    Note this will only work when you manually update the cell, it will not work when the cell is updated via a formula recalculation.

    BSB
    Ahh, That's why ... thanks.
    I must look for other solutions then ...
    Any idea?
    --Tresfjording--

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,689

    Re: Conditional Pop Up Messages

    You could do this with a formula such that text appears in an adjacent cell, e.g.

    =IF(FD20<>19,"Numbers Missing!","")

    You can colour the text red and embolden it for visibility.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Conditional Pop Up Messages

    There are different types of events you can use.
    The code below will evaluate cell FD20 when a change is made to the worksheet that causes a recalculation.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This may not be ideal for your purposes, but without more detail on what you're trying to achieve and why I cannot give a better solution.

    BSB

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Conditional Pop Up Messages

    Excel's built in Data Validation will do this for user entered values.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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. Messages
    By markbarnett in forum Excel General
    Replies: 2
    Last Post: 07-01-2015, 04:20 AM
  2. How to use conditional messages in a message box?
    By max3732 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2012, 12:39 AM
  3. Excel 2007 : Conditional Data Validation Messages
    By Bob1980 in forum Excel General
    Replies: 1
    Last Post: 09-28-2011, 10:20 AM
  4. pop up messages
    By censura in forum Excel General
    Replies: 4
    Last Post: 12-20-2007, 07:24 AM
  5. [SOLVED] pop-up messages
    By Chris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2006, 06:05 AM
  6. [SOLVED] error messages-Is there a way to show error messages
    By hans in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-02-2006, 12:45 PM
  7. Msg.box -messages
    By TUNGANA KURMA RAJU in forum Excel General
    Replies: 4
    Last Post: 01-06-2006, 12:34 AM

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