Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I enter a Cost code into a cell and for all instances these cost codes are
allowed except for one. For this one exception, I want to allow the entry but bring up a warning box to ask user to check the entry. Is this possible in Data Validation or must I use some other way. I know I could just use and IF, but I don't want to add another column to my worksheet. Many thanks for any responses |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If you have a custom type in Validation with a formula to say
=H1<"my value" and then on the error tab set the style to Warning, the message will come up but the user can Continue. -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "sot" wrote in message ... I enter a Cost code into a cell and for all instances these cost codes are allowed except for one. For this one exception, I want to allow the entry but bring up a warning box to ask user to check the entry. Is this possible in Data Validation or must I use some other way. I know I could just use and IF, but I don't want to add another column to my worksheet. Many thanks for any responses |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I don't believe you can check using Data Validation but the code below would
allow a check. Insert this code into the worksheet where you want the check to work. Change $A$1 to the cell you require and 1234 to your "code". Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False On Error GoTo endsub If Application.And(Target = Range("$A$1"), Target.Value = 1234) Then MsgBox "Warning - check this code " & Target.Value End If endsub: Application.EnableEvents = True End Sub HTH "sot" wrote: I enter a Cost code into a cell and for all instances these cost codes are allowed except for one. For this one exception, I want to allow the entry but bring up a warning box to ask user to check the entry. Is this possible in Data Validation or must I use some other way. I know I could just use and IF, but I don't want to add another column to my worksheet. Many thanks for any responses |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validation Data using Validation Table cell range..... | Excel Discussion (Misc queries) | |||
data validation invalid in dynamic validation list | Excel Discussion (Misc queries) | |||
data validation invalid in dynamic validation list | Excel Worksheet Functions | |||
Data validation with validation lists and combo boxs | Excel Discussion (Misc queries) | |||
Refresh existing data when changed in data validation list | New Users to Excel |