Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Loop thru a Validation list

I hava a validation list in A9 that drives some calculations which outcome
need to be put in a different sheet.

How can I loop thru every single element of the validation list and select
it so it shows in A9?
Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Loop thru a Validation list

I assumed that you had a list which was a Range of cell on the same worksheet

With Range("A9")
ValRange = Mid(.Validation.Formula1, 2)
Set DataRange = Range(ValRange)
For Each itm In DataRange
.Value = itm
'enter you code here
Next itm
end with

"LuisE" wrote:

I hava a validation list in A9 that drives some calculations which outcome
need to be put in a different sheet.

How can I loop thru every single element of the validation list and select
it so it shows in A9?
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
Use VBA to reset data validation (=list) value to first value in that list (list is a named range) ker_01 Excel Programming 7 October 27th 08 03:13 PM
Loop + Data validation list + e-mail problem VBA Noob[_39_] Excel Programming 2 August 11th 06 09:37 PM
Validation (Drop down list vs simple text length validation) Bob Phillips[_6_] Excel Programming 2 April 27th 04 07:47 PM
Validation (Drop down list vs simple text length validation) Jason Morin[_2_] Excel Programming 1 April 27th 04 04:56 PM
Validation (Drop down list vs simple text length validation) Pete McCosh Excel Programming 0 April 27th 04 03:49 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"