+ Reply to Thread
Results 1 to 2 of 2

Show cell value in a Msgbox based on IF statement on another column - Excel VBA

  1. #1
    Registered User
    Join Date
    07-23-2019
    Location
    TW
    MS-Off Ver
    2016
    Posts
    12

    Show cell value in a Msgbox based on IF statement on another column - Excel VBA

    I want to create a Msgbox alert to tell me when employees' contract are coming to an end.

    Those contract which are between 4 - 1 month(s) of expiry will have their cells filled in Red:

    trigger alert.png

    This is my code thus far:

    Please Login or Register  to view this content.
    However, how do I include a line of code to tell me the EE No. of the employees whose contract are expiring, to be shown in the Msgbox as well?
    Last edited by AAS44; 02-25-2020 at 09:29 AM.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Show cell value in a Msgbox based on IF statement on another column - Excel VBA

    One option:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

+ 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: 5
    Last Post: 03-19-2019, 11:41 AM
  2. [SOLVED] msgbox: Show "Hi" when i open excel file based on cell value
    By ganeshkumar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2017, 11:17 AM
  3. [SOLVED] If Cell Value = Error, show MsgBox
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2013, 05:12 AM
  4. [SOLVED] Can't show cell comment text in Msgbox
    By zbor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-02-2012, 05:51 AM
  5. Msgbox to show value of 2 cells if a value in another cell
    By syedalamgir in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-24-2011, 08:23 PM
  6. How to show MsgBox if a any cell value is > 17 in a range
    By syedalamgir in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-12-2011, 08:48 PM
  7. [SOLVED] Msgbox based on If statement
    By Neil Jimack in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-11-2005, 07:06 PM

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