Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
HCS HCS is offline
external usenet poster
 
Posts: 5
Default how to list all validation cells on a sheet

hello,

i understand how to alter a validation drop down box using vb. how is it
possible to list using vb all validations drop downs that appear on a sheet?

Cheers


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default how to list all validation cells on a sheet

Hi
To count ALL validation cells:
MsgBox
Worksheets("Feuil2").Cells.SpecialCells(xlCellType AllValidation).Count
BUT if you have different Validation types it will include all of them.

HTH
Cordially
Pascal

"HCS" a écrit dans le message de
...
hello,

i understand how to alter a validation drop down box using vb. how is it
possible to list using vb all validations drop downs that appear on a

sheet?

Cheers




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default how to list all validation cells on a sheet


have a look at vba help for SpecialCells method
it has 2 modes to either select "AllValidation"
or "SameValidation"

and automates what you could manually do via
Goto Special



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"HCS" wrote:

hello,

i understand how to alter a validation drop down box using vb. how is
it possible to list using vb all validations drop downs that appear on
a sheet?

Cheers




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default how to list all validation cells on a sheet

Please watch for unwanted carriage return:
MsgBox _
Worksheets("Feuil2").Cells.SpecialCells(xlCellType AllValidation).Count

Cordially
Pascal

"papou" a écrit dans le message de
...
Hi
To count ALL validation cells:
MsgBox
Worksheets("Feuil2").Cells.SpecialCells(xlCellType AllValidation).Count
BUT if you have different Validation types it will include all of them.

HTH
Cordially
Pascal

"HCS" a écrit dans le message de
...
hello,

i understand how to alter a validation drop down box using vb. how is it
possible to list using vb all validations drop downs that appear on a

sheet?

Cheers






  #5   Report Post  
Posted to microsoft.public.excel.programming
HCS HCS is offline
external usenet poster
 
Posts: 5
Default how to list all validation cells on a sheet

Thanks to both of you that looks like what i need!

Cheers

"keepITcool" wrote in message
...

have a look at vba help for SpecialCells method
it has 2 modes to either select "AllValidation"
or "SameValidation"

and automates what you could manually do via
Goto Special



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"HCS" wrote:

hello,

i understand how to alter a validation drop down box using vb. how is
it possible to list using vb all validations drop downs that appear on
a sheet?

Cheers






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
data validation list form sheet [email protected] Excel Worksheet Functions 1 January 24th 09 12:12 AM
Data Validation List from different sheet Michelle Excel Discussion (Misc queries) 1 November 25th 08 11:06 AM
Validation,........how to use a list in another sheet susy Excel Worksheet Functions 1 October 18th 07 02:34 PM
List Validation Based on another sheet Kenny Excel Discussion (Misc queries) 5 October 1st 07 11:31 PM
Remove empty cells from named list / validation list Sp00k Excel Worksheet Functions 4 April 28th 06 03:45 PM


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