Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default Data Validation

I want to have data validation on 15 cells only. These 15 cells are for
account numbers. I have a list of valid account numbers on a hidden
worksheet.

I've seen some comments on adding validation to a whole column. Can I
progam the workbook, so the validation only applies to 15 cells on a specific
sheet?

Any suggestions or code to get me started would be appreciated. As always,
Thanks for all of the help in this newsgroup.....
--
JT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Data Validation

turn on the macro recorder

Select the 15 cells,
Manually apply the data=Validation.
turn off the macro recorder.

Examine the code
(assumes you have a defined name that refers to the range of acceptable
entries on the other sheet - which is a requirement to use data validation. )

there is no reason to apply data validation to the whole column if you only
want to do it to 15 cells.

--
Regards,
Tom Ogilvy


"JT" wrote:

I want to have data validation on 15 cells only. These 15 cells are for
account numbers. I have a list of valid account numbers on a hidden
worksheet.

I've seen some comments on adding validation to a whole column. Can I
progam the workbook, so the validation only applies to 15 cells on a specific
sheet?

Any suggestions or code to get me started would be appreciated. As always,
Thanks for all of the help in this newsgroup.....
--
JT

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
custom data validation on cells with data validation values AKrobbins Excel Worksheet Functions 2 June 21st 11 04:20 PM
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
data validation invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 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


All times are GMT +1. The time now is 11:54 AM.

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"