Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default populating a validation list

Hi,

I have some code that populates a data validation list automatically. The
list has approxiately 20 entries and the VB code will not allow me to have
that many - it throws up an error message when trying to run the line.

To get round this, I have simply pointed the code at a range of cells way
off from where the user will be working. The problem with this is that if
rows are deleted, the references become invalid, as the list of valid entries
effectively "moves up" the page.

Can anyone suggest another way around the limit VB is placing on the number
of items in my list?

TIA

Dave
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default populating a validation list

If the list shouldn't change (the user is deleting the row for a different
purpose), why not just put the range on a separate sheet--and hide the sheet.

If you do this, then you'll have to name that range.

Debra Dalgleish explains he
http://contextures.com/xlDataVal01.html#Name

And if that list can grow/contract, you may be able to use a dynamic range name:
http://contextures.com/xlNames01.html#Dynamic
(also from Debra's site.)

Risky Dave wrote:

Hi,

I have some code that populates a data validation list automatically. The
list has approxiately 20 entries and the VB code will not allow me to have
that many - it throws up an error message when trying to run the line.

To get round this, I have simply pointed the code at a range of cells way
off from where the user will be working. The problem with this is that if
rows are deleted, the references become invalid, as the list of valid entries
effectively "moves up" the page.

Can anyone suggest another way around the limit VB is placing on the number
of items in my list?

TIA

Dave


--

Dave Peterson
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
Populating a data validation list based on criteria Ciarán Excel Discussion (Misc queries) 3 February 27th 09 08:03 AM
Validation list populating multiple cells Jason Excel Discussion (Misc queries) 4 February 5th 09 06:25 PM
Populating a Data Validation List Jim Skrydlak Excel Discussion (Misc queries) 2 September 7th 07 12:00 AM
Populating a combo box from a Validation jasda2 Excel Programming 4 June 6th 05 03:39 PM
Populating a Validation List with SQL Rone Excel Programming 1 May 15th 04 04:26 AM


All times are GMT +1. The time now is 07:50 PM.

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"