+ Reply to Thread
Results 1 to 7 of 7

Need a code that creates a popup message box when a certain value is entereted into a cell

  1. #1
    Registered User
    Join Date
    07-09-2014
    Location
    Springfield, missouri
    MS-Off Ver
    2013
    Posts
    25

    Question Need a code that creates a popup message box when a certain value is entereted into a cell

    Hi all,

    I am working with a spreadsheet that contains a column for specific part numbers to be entered, Column "M" in my case.
    I need a code that will popup a message box that says, "Treat 1799880 and 2002054 as the same part" when either of those
    2 part numbers are entered into a cell in that column. I tried a couple of examples from online but I am not very familiar
    with writing code and they just didn't work. The sheet name is DEVIATION LOG if that helps. Any assistance I could get would
    be greatly appreciated. I am using Excel 2013. Thanks again.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Need a code that creates a popup message box when a certain value is entereted into a

    Hi,

    You could use Data Validation for that without any code?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    07-09-2014
    Location
    Springfield, missouri
    MS-Off Ver
    2013
    Posts
    25

    Re: Need a code that creates a popup message box when a certain value is entereted into a

    I could if I knew how to set that up. The only thing I found in Data Validation is setting it for a specific cell, not a range of cells, unless I am missing something.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Need a code that creates a popup message box when a certain value is entereted into a

    You can apply it to a range of cells, or even an entire column. For example, select the whole of column M, then choose Data Validation, change the Allow option to Custom and enter this as the Formula
    =NOT(OR(M1=1799880,M1=2002054))
    then switch to the error alert tab and change the style to Warning and enter a title and message of your choosing.

  5. #5
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Need a code that creates a popup message box when a certain value is entereted into a

    highlight the range and then click data validation.

  6. #6
    Registered User
    Join Date
    07-09-2014
    Location
    Springfield, missouri
    MS-Off Ver
    2013
    Posts
    25

    Re: Need a code that creates a popup message box when a certain value is entereted into a

    xlnitwit,

    That worked perfectly! Thank you so much for your help.

  7. #7
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Need a code that creates a popup message box when a certain value is entereted into a

    You're welcome.

+ 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 code to popup message box and choose the header data out of multiple choices
    By anjo695237 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2016, 09:08 AM
  2. Code for a popup message
    By jslyuan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-11-2016, 05:03 PM
  3. [SOLVED] VBA code to show Warning Message Box popup if certain text is found in column
    By Tapyr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-15-2016, 11:39 AM
  4. popup alert message during the worksheet open and continuous work on the sheet popup jump
    By shailkam2001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2014, 10:24 AM
  5. [SOLVED] Popup message when cell value is equal to
    By jjislas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-01-2012, 03:37 PM
  6. Code to popup a message box after 15 days of the inserted date
    By hunmus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2012, 01:33 PM
  7. vba popup message code
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-23-2008, 04:38 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