+ Reply to Thread
Results 1 to 9 of 9

message box

Hybrid View

Anil Juyal message box 11-21-2012, 05:00 AM
Kyle123 Re: message box 11-21-2012, 05:19 AM
Anil Juyal Re: message box 11-22-2012, 05:05 AM
derato Re: message box 04-15-2013, 05:55 PM
RHCPgergo Re: message box 11-21-2012, 05:26 AM
Anil Juyal Re: message box 11-23-2012, 09:25 AM
Anil Juyal Re: message box 01-19-2013, 02:54 AM
Anil Juyal Re: message box 04-08-2013, 11:00 AM
arlu1201 Re: message box 04-16-2013, 02:13 AM
  1. #1
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: message box

    Hi,

    can you be more specific? I can only offer vague advice with your description.

    You should use the worksheet_change event and the MsgBox function. Something like this:
    Private Sub Worksheet_Change(ByVal Target As Range)
    
    If Target.Column = 1 Then ' <-- this is the column you check
        If Target = "1" Then MsgBox "You entered 1."
        If Target = "2" Then MsgBox "You entered 2."
        If Target = "3" Then MsgBox "You entered 3."
        If Target = "4" Then MsgBox "You entered 4."
    End If
    
    End Sub
    You need to write the code in the worksheet's code window. Change it the way you like.
    Last edited by RHCPgergo; 11-21-2012 at 05:28 AM. Reason: oops, minor mistake in code

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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