LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Need help with message box.

Or, to use your references:

If Cells(22, 11).Value = "QS" Then
MsgBox "New code"
Exit Sub
End If

if you do not want this to be case sensitive:

If UCase(Cells(22, 11).Value) = "QS" Then
MsgBox "New code"
Exit Sub
End If


---
Regards,
Norman



"Norman Jones" wrote in message news:...
Hi Pat,

Try:

If Cells(1, 1).Value = "QS" Then
MsgBox "New code"
Exit Sub
End If


---
Regards,
Norman



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Message Box - more help please !! Anthony Excel Worksheet Functions 4 February 25th 05 03:19 PM
changing the message in an error message The Villages DA Excel Worksheet Functions 2 February 18th 05 05:30 PM
Displaying a message in a message box without requiring user to click anything to proceed Android[_2_] Excel Programming 2 June 25th 04 06:44 PM
Message box Mark1ace1[_3_] Excel Programming 1 June 8th 04 02:36 AM
Message Box Alan Excel Programming 2 November 26th 03 06:49 PM


All times are GMT +1. The time now is 09:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"