+ Reply to Thread
Results 1 to 13 of 13

Message Box

  1. #1
    Registered User
    Join Date
    01-18-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    87

    Message Box

    Hi everyone,

    I'm looking to have a message box pops up when user put specific word. I'm using the following formula but it's not seem to be working.



    Please Login or Register  to view this content.


    Please can someone help

    many thanks
    Last edited by alansidman; 09-14-2019 at 06:43 PM.

  2. #2
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,418

    Re: Message Box

    Quote Originally Posted by abac View Post
    Please Login or Register  to view this content.
    Since your range is fixed, try changing the above line of code to this...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-18-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    87

    Re: Message Box

    Thank you for the quick reply.

    I'm encountering a problem that the message box is popping up even if there is something else in the cell.

    For example in D14 I put 30 minutes - the same message pops up. I only want the message to pop up if anyone put "Over 2.5 Hours"

    Please can you advise me on that.

    Thank you

  4. #4
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,418

    Re: Message Box

    I assumed you wanted the MessageBox to appear if the words "Over 2.5 Hours" appeared in any one of the cells in the range D13:D69 no matter what values existed in the other cells. Apparently that is not what you wanted... can you explain in more detail what you do want?

  5. #5
    Registered User
    Join Date
    01-18-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    87

    Re: Message Box

    I want if the word "Over 2.5 HOurs" appeared in either of the cell between the range of D13:D69 then the message box appears

    thanks

  6. #6
    Registered User
    Join Date
    01-18-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    87

    Re: Message Box

    for example

    d13 - "Over 2.5 Hours" - Message box appears
    d14 - 1 hour - no message box
    d15 - 2 hours - no message box
    d16 - "Over 2.5 Hours@ - Message box appears

  7. #7
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,418

    Re: Message Box

    I think I may have misunderstood what you wanted. My code was looking at all the cells in the range all at once to see if any of them had that text in it. Are you saying that you want to check each cell individually as the user enters text into them to see if their individual entry contained the text you were looking for?

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Message Box

    Hello abac,

    I could have a look at it for you, but i have not heard anything from you in this Thread.

    No Reputation added, nor a thank you.

    Regards
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  9. #9
    Registered User
    Join Date
    01-18-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    87
    Quote Originally Posted by Winon View Post
    Hello abac,

    I could have a look at it for you, but i have not heard anything from you in this Thread.

    No Reputation added, nor a thank you.

    Regards
    Hi Winon
    I’m so sorry about that and thank you for time and support on the other post. Your help was very much appreciated
    Thanks once again pal

  10. #10
    Registered User
    Join Date
    01-18-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    87
    Quote Originally Posted by Rick Rothstein View Post
    I think I may have misunderstood what you wanted. My code was looking at all the cells in the range all at once to see if any of them had that text in it. Are you saying that you want to check each cell individually as the user enters text into them to see if their individual entry contained the text you were looking for?
    Hi Rick

    Yes that’s correct.

    Thanks a lot

  11. #11
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,418

    Re: Message Box

    See if this event code does what you want...
    Please Login or Register  to view this content.
    HOW TO INSTALL Event Code
    ------------------------------------
    If you are new to event code procedures, they are easy to install. To install it, right-click the name tab at the bottom of the worksheet that is to have the functionality to be provided by the event code and select "View Code" from the popup menu that appears. This will open up the code window for that worksheet. Copy/Paste the event code into that code window. That's it... the code will now operate automatically when its particular event procedure is raised by an action you take on the worksheet itself. Note... if you are using XL2007 or above, make sure you save your file as an "Excel Macro-Enabled Workbook (*.xlsm) and answer the "do you want to enable macros" question as "yes" or "OK" (depending on the button label for your version of Excel) the next time you open your workbook.

  12. #12
    Registered User
    Join Date
    01-18-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    87

    Re: Message Box

    yes it worked - what a star.

    Thank you so much - I truly appreciate your support.

  13. #13
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Message Box

    Hello abac,

    If you are satisfied that any of your Threads had been replied to successfully, then please do mark such Threads as Solved. You may also add to the contributors' Reputation by clicking on the star * "Add Reputation", located to the bottom left of that Post, and follow the prompts.

    Regards.

+ 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. Replies: 1
    Last Post: 05-30-2018, 12:17 PM
  2. Adding an input message to each cell to bring back corrsponding message
    By Nic31 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-01-2014, 09:28 AM
  3. how to make only message appear number of time before message does not show
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-06-2013, 07:30 PM
  4. [SOLVED] How to pop up a warning message before any Excel automatic update link reminder message
    By billj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2013, 10:41 AM
  5. Extracting mail message(outlook) table in the message body
    By andywsw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2012, 10:14 PM
  6. need of pop up message dynamically using data validation input message method
    By vba_life in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2010, 09:03 AM
  7. [SOLVED] Intercept/replace standard 'cell protected' message with my own message?
    By KR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2006, 10:35 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