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

(1) I input records in the worksheet
(2) When I input in column A of any row (e.g. invno), it will check whether
the values exist in the column A of all rows, it yes, show dialog that
duplicate record.
(3) the coding should put on the lost focus event of cells in column A


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default validation

Raymond,

You can have a macro if you want but you don't need one.

Select column A then
Data|Validation
Select Custom
Enter the formula
=COUNTIF(A:A,A1)<2

On the 'Error Alert' tab enter a heading and suitable text.
Click OK

Mike


"Raymond Chiu" wrote:

(1) I input records in the worksheet
(2) When I input in column A of any row (e.g. invno), it will check whether
the values exist in the column A of all rows, it yes, show dialog that
duplicate record.
(3) the coding should put on the lost focus event of cells in column A



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
data validation invalid in dynamic validation list ilia Excel Programming 0 November 7th 06 12:54 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM
Validation (Drop down list vs simple text length validation) Bob Phillips[_6_] Excel Programming 2 April 27th 04 07:47 PM
Validation (Drop down list vs simple text length validation) Jason Morin[_2_] Excel Programming 1 April 27th 04 04:56 PM
Validation (Drop down list vs simple text length validation) Pete McCosh Excel Programming 0 April 27th 04 03:49 PM


All times are GMT +1. The time now is 08:11 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"