LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default Validating user input to a listbox

Many thanks to you both.

Regards.

"Dick Kusleika" wrote in message
...
Stuart

:
a) that all entries are filled


You just cycle through all the entries and test the len of column two to

be
greater than zero.

b) that all values are valid


Maybe try to insert the sheet into the existing workbook and rename it.

Use
error checking to see if you get an error, and which error you get. If

you
don't get an error, delete the "temporary" sheet.

c) that all entries are unique


You could put all the names in a collection with their name as the key
value, then compare Collection.Count to the number you should have.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003


 
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
Prompt user for input and utilize that input ninner Excel Worksheet Functions 2 March 28th 07 09:44 PM
listbox B conditional of input in Listbox A Kim K Excel Discussion (Misc queries) 1 October 31st 06 08:27 PM
Have user input converted to uppercase in same cell as input? Shannonn New Users to Excel 1 June 20th 06 03:19 AM
User form with a listbox John Green[_2_] Excel Programming 4 December 30th 03 07:18 PM
Get User Input pancho[_6_] Excel Programming 0 July 23rd 03 05:23 PM


All times are GMT +1. The time now is 12:28 PM.

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"