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: 24
Default Prevent duplicate in Data Validation

Further to the recent posts, I have been working on a method to create
Data Validation using sorted, non-duplicated items. This is based on a
John Walkenbach method, ref "Power Programming 2002 VBA", page 423.
Based on a tip by J.G. Hussey, published in "Visual Basic Programmer's
Journal".

Data Validation requires that the List Source must be a delimited list
or a reference to a single row or column.

My methods are to create Data Validation in VBA by using either :

1. a delimited list (VBA string variable, effectively held in memory),
or
2. a worksheet range.

The former is limited to 256 characters, OK for most "normal"
purposes. The latter requires writing to the worksheet as I have been
unable to implement a range "in memory" that works with Data
Validation. I've tried all sorts of naming techniques, no luck. If
anyone has an ideas, it would finish off this approach to removing
duplicates from Data Validation.

If anyone is interested in examples, please ask.

Regards,

Mark
 
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
How do I prevent duplicate entry of a sku in a data table? hscja Excel Worksheet Functions 1 December 15th 09 02:59 PM
Prevent duplicate data from being entered into the same column Char Excel Worksheet Functions 3 August 29th 07 03:28 PM
How do I prevent duplicate data in Excel? PANKAJ KUMAR Excel Discussion (Misc queries) 3 October 19th 05 02:38 PM
Data validation to prevent duplicate entry. vishu Excel Discussion (Misc queries) 0 March 14th 05 11:33 AM
prevent duplicate in Data Validation wiwi[_9_] Excel Programming 2 January 13th 04 11:49 AM


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