Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default How to change where validation should be?

I created a validaton, it should be in column b only upto the last row of
data in col a, and the amount of rows with data in col a will change all the
time, what should I do? Do I have to delete and recreate the location every
time, if so then how? thanks in advance!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default How to change where validation should be?

Use a formula of

=OFFSET($A$1,,,COUNTA($A:$A),1)

in the list formula of the DV.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"mikeb" wrote in message
...
I created a validaton, it should be in column b only upto the last row of
data in col a, and the amount of rows with data in col a will change all

the
time, what should I do? Do I have to delete and recreate the location

every
time, if so then how? thanks in advance!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default How to change where validation should be?

Bob, what I'm trying to do is have validation list in column B consisting of
all the unique values in column A and if col A goes to row 100 col B goes to
Row 100, the number of rows in col a changes. In my code I get the unique
values and place them in another sheet, I now want to create a dynamic named
range and use that for validation in col B.

"Bob Phillips" wrote:

Use a formula of

=OFFSET($A$1,,,COUNTA($A:$A),1)

in the list formula of the DV.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"mikeb" wrote in message
...
I created a validaton, it should be in column b only upto the last row of
data in col a, and the amount of rows with data in col a will change all

the
time, what should I do? Do I have to delete and recreate the location

every
time, if so then how? thanks in advance!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default How to change where validation should be?

Just use the formula that I provided to create the named range then.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"mikeb" wrote in message
...
Bob, what I'm trying to do is have validation list in column B consisting

of
all the unique values in column A and if col A goes to row 100 col B goes

to
Row 100, the number of rows in col a changes. In my code I get the unique
values and place them in another sheet, I now want to create a dynamic

named
range and use that for validation in col B.

"Bob Phillips" wrote:

Use a formula of

=OFFSET($A$1,,,COUNTA($A:$A),1)

in the list formula of the DV.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"mikeb" wrote in message
...
I created a validaton, it should be in column b only upto the last row

of
data in col a, and the amount of rows with data in col a will change

all
the
time, what should I do? Do I have to delete and recreate the location

every
time, if so then how? thanks in advance!






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
Validation list font change Vinod[_2_] Excel Discussion (Misc queries) 1 October 4th 08 12:43 AM
How does Data Validation change with a formula change? MayClarkOriginals Excel Worksheet Functions 3 July 5th 06 04:50 AM
change data validation rachael Excel Programming 5 September 15th 05 04:46 PM
Add/Change Data validation list ex1302[_7_] Excel Programming 0 July 20th 05 11:08 AM
change validation on protected sheet Patrick Excel Programming 1 November 20th 04 02:23 PM


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