#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Mesage Box


Hi,

I have a list in worksheet "Clients"

1) Shell
2) ABC
3) Chevron
etc.etc.

(Actually over 100 Clients)

I have a separate sheet "Summary",

if an individual enters a Client in cell A1 which is one of thes
Clients,
a message box prompts "You have entered a key client"

Slight catch is that if the client entered is a derivative of one o
the list
e.g. ABC Co, ABC Ltd
Then the message box still appears.

Thank

--
T De Villier
-----------------------------------------------------------------------
T De Villiers's Profile: http://www.excelforum.com/member.php...fo&userid=2647
View this thread: http://www.excelforum.com/showthread.php?threadid=56060

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Mesage Box

Not a message box, but perhaps this will help.

First define the list on Clients as a named range (InsertNameDefine...) of
ClientList, and then select A1 and goto Conditional formatting
(FormatConditional Formatting), change Condition 1 to Formula Is, add the
formula

=ISNA(MATCH(LEFT(A1,LEN(ClientList)),ClientList,0) )

select the pattern tab and choose a colour.

This will highlight a bad name.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"T De Villiers"
wrote in message
news:T.De.Villiers.2atth1_1152697506.5888@excelfor um-nospam.com...

Hi,

I have a list in worksheet "Clients"

1) Shell
2) ABC
3) Chevron
etc.etc.

(Actually over 100 Clients)

I have a separate sheet "Summary",

if an individual enters a Client in cell A1 which is one of these
Clients,
a message box prompts "You have entered a key client"

Slight catch is that if the client entered is a derivative of one on
the list
e.g. ABC Co, ABC Ltd
Then the message box still appears.

Thanks


--
T De Villiers
------------------------------------------------------------------------
T De Villiers's Profile:

http://www.excelforum.com/member.php...o&userid=26479
View this thread: http://www.excelforum.com/showthread...hreadid=560606



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Mesage Box

Actually, we can do better, using Data Validation.

Name the range as mentioned before.

Select A1.

Goto Data Validation, DataValidation

Select an allow type of Custom

Use the same formula

Be sure to uncheck the Ignore Blank box

Select the Error tab and add a message.

Now, entering an invalid message gets you the message box.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Bob Phillips" wrote in message
...
Not a message box, but perhaps this will help.

First define the list on Clients as a named range (InsertNameDefine...)

of
ClientList, and then select A1 and goto Conditional formatting
(FormatConditional Formatting), change Condition 1 to Formula Is, add the
formula

=ISNA(MATCH(LEFT(A1,LEN(ClientList)),ClientList,0) )

select the pattern tab and choose a colour.

This will highlight a bad name.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"T De Villiers"


wrote in message
news:T.De.Villiers.2atth1_1152697506.5888@excelfor um-nospam.com...

Hi,

I have a list in worksheet "Clients"

1) Shell
2) ABC
3) Chevron
etc.etc.

(Actually over 100 Clients)

I have a separate sheet "Summary",

if an individual enters a Client in cell A1 which is one of these
Clients,
a message box prompts "You have entered a key client"

Slight catch is that if the client entered is a derivative of one on
the list
e.g. ABC Co, ABC Ltd
Then the message box still appears.

Thanks


--
T De Villiers
------------------------------------------------------------------------
T De Villiers's Profile:

http://www.excelforum.com/member.php...o&userid=26479
View this thread:

http://www.excelforum.com/showthread...hreadid=560606





Reply
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
I want a mesage sent when a change is made to an excel file charlieking4747 Excel Discussion (Misc queries) 1 January 13th 06 07:25 PM
Mesage based on table StephanieH Excel Programming 0 September 7th 05 01:06 AM
get rid of mesage boxes tim64 Excel Programming 5 June 7th 05 10:24 AM
No more fonts allowed for this file error mesage Mark Barbier Charts and Charting in Excel 3 January 27th 05 09:45 PM


All times are GMT +1. The time now is 08:59 PM.

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

About Us

"It's about Microsoft Excel"