Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Validation (Drop down list vs simple text length validation)

Try something like:

Sub TestValidation()

With ActiveCell.Validation
If .Type = xlValidateList Then
MsgBox "It's a drop-down list!"
Else
MsgBox "It's not a drop-down list!"
End If
End With

End Sub

---
Of course if the active cell doesn't contain validation,
the macro will error out.

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi everyone,
I want to know how to distinguish between a cell that

displays a drop down list in a cell and another that does
not.

Thank you.
.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Validation (Drop down list vs simple text length validation)

Hi Jason
Your solution work fine
Thank you very much and have a good day
Ja

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
Simple drop down list validation KerryOrr New Users to Excel 3 October 9th 07 11:54 PM
Text size in validation drop-down list box Jon Excel Worksheet Functions 1 October 11th 05 08:20 PM
validation list drop down box, how do I bring in text commands Scott Excel Discussion (Misc queries) 1 September 29th 05 04:01 PM
data validation list drop down text format too small Bruce Edwards Excel Worksheet Functions 3 May 22nd 05 07:28 PM
Validation (Drop down list vs simple text length validation) Bob Phillips[_6_] Excel Programming 2 April 27th 04 07:47 PM


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