Message Box

mks

Board Regular
Joined
Aug 28, 2009
Messages
173
Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
I need help to sought out the error in following macros.<o:p></o:p>
I have another macros to put the short name of person in Column “O” via user input box. I mean as soon I put the serial number in column A, than input box get appeared to enter the short name of person in Column “O”.<o:p></o:p>
Now I want that as soon I put the person name than it should show the message box, which I tried by below macros, but it is not working.<o:p></o:p>
This message box should only appear for short name as written in macros<o:p></o:p>
Please, help me to sought out this problem.<o:p></o:p>
Macros – <o:p></o:p>
Private Sub Worksheet_Change(ByVal Target As Range)<o:p></o:p>
If Target.Count > 1 Then Exit Sub<o:p></o:p>
If Intersect(Target, Range("$O$1:$O$100")) Is Nothing Then Exit Sub<o:p></o:p>
Select Case Target<o:p></o:p>
Case "MHU", "ATU", "DVR", "PLS", "TSK"<o:p></o:p>
<o:p> </o:p>
'Do nothing<o:p></o:p>
Case Else:<o:p></o:p>
MsgBox "Reliable Persons – Allot more work"<o:p></o:p>
Application.EnableEvents = False<o:p></o:p>
Application.Undo<o:p></o:p>
Application.EnableEvents = True<o:p></o:p>
End Select<o:p></o:p>
End Sub<o:p></o:p>
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
If you are putting the person into column O by macro, why aren't you putting the rest of your code in that macro?
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,865
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top