TRUE
FALSE
(期望一系列值和一个true/false的数组)VBA中的跨越 /参数设置?有可能适应此UDF,以便两者都接受:
'Checks whether the contents of a given cell meets the data validation rules
Function IsValid(Cell) As Variant
IsValid = Cell.Validation.Value
End Function
和返回单曲
FILTER
Cell As Variant
True/False
Cell AS Variant()
True/False
Dim i As Long, n As Long, v As Variant
n = rng.Rows.Count
ReDim v(1 To n, 1 To 1)
For i = 1 To n
v(i, 1) = rng(i).Validation.Value
Next i