Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default be validated or not validated in a cell



In using vba,
i want to know application yes or no validation check of specific cell.

dim mycel as range
if mycel.validation = true then
msgbox "yes the cell have validation"
else
msgbox "no no, the cell is general."
endif

but, i don't know how to do.

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default be validated or not validated in a cell

One way:

Dim mycel As Range
Dim vald As Variant
Set mycel = Range("D2")
On Error Resume Next
vald = mycel.Validation.Type
On Error GoTo 0
If vald < Empty Then
MsgBox "yes the cell have validation"
Else
MsgBox "no no, the cell is general."
End If

Hope this helps
Rowan

x taol wrote:

In using vba,
i want to know application yes or no validation check of specific cell.

dim mycel as range
if mycel.validation = true then
msgbox "yes the cell have validation"
else
msgbox "no no, the cell is general."
endif

but, i don't know how to do.

*** Sent via Developersdex http://www.developersdex.com ***

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
Multiple selection from and into validated cell. Vikas Kumar Excel Discussion (Misc queries) 6 September 3rd 08 08:40 PM
Data Validated Cell Arrow not Appearing Varne Excel Discussion (Misc queries) 9 January 2nd 08 05:51 PM
Can I drag a validated cell down the column w/a different input/ro Rick Excel Discussion (Misc queries) 1 October 13th 07 03:02 PM
Tab from a Validated Cell to another shad Excel Discussion (Misc queries) 4 February 4th 07 09:21 PM
Using fill handle - validated cell - protected sheet Matt Excel Discussion (Misc queries) 2 January 11th 07 12:20 AM


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