+ Reply to Thread
Results 1 to 9 of 9

Custom Message if a number is column D is greater than Column L

  1. #1
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Custom Message if a number is column D is greater than Column L

    Can anyone help create a custom warning message to pop up if a number in column L is greater than the number in column D on the sheet named Data.
    Attached Files Attached Files

  2. #2
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Custom Message if a number is column D is greater than Column L

    Hi,

    Add custom cell value change code, on B4 selection change compare D4 and L4 cell value and you can add message box in VBA.


    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  3. #3
    Registered User
    Join Date
    02-01-2011
    Location
    California, Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Custom Message if a number is column D is greater than Column L

    guitarsweety,

    Place this in the Data worksheet module (Alt + F11).

    Please Login or Register  to view this content.
    I believe it does what you want based on what you listed in your post L > D not as listed in your Title D > L. Code is easy change
    if you want it as Title.

    Regards,

    BigDawg15
    Last edited by BigDawg15; 10-01-2014 at 12:03 PM. Reason: Line not needed and removed.

  4. #4
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: Custom Message if a number is column D is greater than Column L

    I tried it but I can't get it to do anything

  5. #5
    Registered User
    Join Date
    02-01-2011
    Location
    California, Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Custom Message if a number is column D is greater than Column L

    guitarsweety,

    Sorry. Try this in a regular module.


    Please Login or Register  to view this content.
    Regards,

    BigDawg15

  6. #6
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: Custom Message if a number is column D is greater than Column L

    Now that's pretty awesome, thank you. Is there a way to automatically run this?

  7. #7
    Registered User
    Join Date
    02-01-2011
    Location
    California, Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Custom Message if a number is column D is greater than Column L

    What do you mean by automatic?

    When workbook opens or change is made?

    BigDawg15

  8. #8
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: Custom Message if a number is column D is greater than Column L

    When a change is made I think would be ideal

  9. #9
    Registered User
    Join Date
    02-01-2011
    Location
    California, Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Custom Message if a number is column D is greater than Column L

    Ok. Try this.

    Please Login or Register  to view this content.

    Delete the code in the standard module and insert the code in this post into the Data worksheet module. Go to the Raw worksheet and enter your data. When you click back on the Data worksheet the macro will be activated and it will pop up a message box showing each of the cells meeting the criteria.

    The message in the message box can be changed also.

    BigDawg15
    Last edited by BigDawg15; 10-02-2014 at 10:43 AM.

+ 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: 2
    Last Post: 04-09-2014, 07:42 AM
  2. Match Column A's Project number to change based on greater number in new row
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2013, 10:18 AM
  3. Replies: 12
    Last Post: 09-06-2013, 02:09 PM
  4. VBA to copy data from a column with number greater than zero...???
    By CarJon0767 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-12-2013, 10:57 PM
  5. [SOLVED] How to count the number of times column B is greater than column A
    By scorpiogirl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-06-2012, 02:40 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