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: 31
Default Cell Data Validation with dynamic Range

Can I use the following code:

With ActiveCell
.Validation.Delete
.Validation.Add xlValidateList, , , "=" & "ListRange"
End With

with several cells in a column BUT using for each SPECIFIC cell a
SPECIFIC ListRangexx

Example:

Cell "A1" Value: 85 this cell will use Data Validation ListRange85
which is a range to use with value 85
Cell "A2" Value: 86 this cell will use datavalidation ListRange86 which
is a range to use with value 86

These ranges(ListRange85" , ListRange86 ) are dynamic They will be
Created from an Imported Table to this workbook

Here is the Layout of that table:

Item/Price
1185/$.5
2285/$.6
3386/$.7
4486/$.8
5586/$.9

The ListRange85 will contain two Validations 1185 and 2285
The ListRange86 will contain three Validations 3386 ,4486 and 5586

So When I select cell A1 I get to choose between 1185 and 2285

I hope I made myself clear enough



The ListRange85 is dynamically filled each time I open a wb from a
onother table imported to this workbook

 
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 List from a Dynamic Named Range on Another Workshe Jeremy Excel Worksheet Functions 5 March 29th 10 09:26 AM
Dynamic name range for use in data validation raphiel2063 Excel Worksheet Functions 1 November 13th 09 05:29 AM
dynamic range and data validation GSB Excel Worksheet Functions 3 July 17th 07 04:14 PM
Dynamic Range for Data Validation Revolvr Excel Programming 2 July 8th 05 07:25 PM
Data Validation to check Dynamic range in another sheet Soniya Excel Programming 2 August 12th 03 12:52 PM


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