+ Reply to Thread
Results 1 to 6 of 6

VBA to display msg box when condition is met in cell

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    VBA to display msg box when condition is met in cell

    Hi,

    I am not sure if this is possible, but thought of trying it out.


    Based on the value entered in column B,C& D. I want msg box to appear.

    I have added my expected value in Column E.

    Please guide.

    Thanks
    Shiva
    Attached Files Attached Files
    Keep the Forum clean :


    1. Use [ code ] code tags [ /code ]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. Show appreciation to those who have helped you by clicking * Add Reputation below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: VBA to display msg box when condition is met in cell

    Maybe I'm missing something, what is the difference between row 3 and 6? Why do they have different messages?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: VBA to display msg box when condition is met in cell

    oops, sorry.

    Here is the updated one.
    Attached Files Attached Files

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: VBA to display msg box when condition is met in cell

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: VBA to display msg box when condition is met in cell

    Thanks Solus, Works like charm..

    I have another code which saves the sheets. Where should I place that code in your code? This save sheet code should run only where there is no error in sheet(NO msg box displayed and everything is fine).

    Thanks
    Shiva

  6. #6
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: VBA to display msg box when condition is met in cell

    Please Login or Register  to view this content.

+ 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. Display dropdown list in cell if condition is met
    By markiz in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-19-2013, 03:12 AM
  2. [SOLVED] Display Image on Condition of Cell Value
    By ligerdub in forum Excel General
    Replies: 5
    Last Post: 06-29-2012, 10:01 AM
  3. Excel 2007 : Display cell address if condition is matched
    By arthurz11 in forum Excel General
    Replies: 7
    Last Post: 10-11-2011, 02:24 PM
  4. Display cell address if condition is matched
    By arthurz11 in forum Excel General
    Replies: 1
    Last Post: 10-10-2011, 09:40 PM
  5. Excel: with an if condition display a row of cell if true
    By Seema Yadav in forum Excel General
    Replies: 7
    Last Post: 01-12-2006, 06:00 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