+ Reply to Thread
Results 1 to 4 of 4

Help with a warning Box

  1. #1
    Registered User
    Join Date
    12-20-2010
    Location
    Glasgow
    MS-Off Ver
    Excel 2003
    Posts
    6

    Help with a warning Box

    Hi there,

    Hoping someone can help.

    I have a sheet that users will either mark cells with either a Y or a N.

    Cell F20 I want a warning box to pop up if the user put in either N or n

    I have tried the following and it works but I cannot figure how to include both (n and N)

    Option Explicit
    Dim StrMsg As String
    Dim TitleMsg As String
    Private Sub Worksheet_Change(ByVal Target As Range)
    If (Target.Address = "$F$20") Then
    If (Target.Value = "n") Then
    StrMsg = "If you are sure that this is a CALL FAIL, please continue to mark rest of call so that feedback can be given to advisor. Thanks."
    TitleMsg = "CALL FAIL?"
    MsgBox StrMsg, vbInformation, TitleMsg
    End If
    End If
    End Sub

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Help with a warning Box

    Please Login or Register  to view this content.
    Last edited by patel45; 08-12-2013 at 07:19 AM.
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Help with a warning Box

    thornden4

    Try changing this row

    Please Login or Register  to view this content.
    for this

    Please Login or Register  to view this content.
    Windy

  4. #4
    Registered User
    Join Date
    12-20-2010
    Location
    Glasgow
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Help with a warning Box

    Quote Originally Posted by windy58 View Post
    thornden4

    Try changing this row

    Please Login or Register  to view this content.
    for this

    Please Login or Register  to view this content.
    Windy
    Windy you have been a life saver. Thanks so much.

+ 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] Warning!!!
    By Paul in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  2. Warning!!!
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 06:05 AM
  3. [SOLVED] Warning!!!
    By Paul in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  4. [SOLVED] Warning!!!
    By Paul in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. [SOLVED] Warning!!!
    By Paul in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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