Message Box

mks

Board Regular
Joined
Aug 28, 2009
Messages
173
Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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,214,391
Messages
6,119,239
Members
448,879
Latest member
VanGirl

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