# DataValidationType complexType

Contains the data validation criteria, input message, and error message elements of the specified range.

## Type Information

Namespace | urn:schemas-microsoft-com:office:excel
Schema name | XML Spreadsheet 2000

## Elements and Attributes

### Child Elements

Element | Description
--- | ---
Range | Contains the range or a list of ranges that apply to a conditional text format, data validation range, or data source.
Type | Specifies the type of axis scaling, chart, data source, 3-D shape, or trendline, the data validation constraints on data entered into a range, or the position of legend entries.
CellRangeList | Specifies whether a list of values is used for data validation.
Qualifier | Contains the qualifier of a condition in conditional text formatting and data validation.
UseBlank | Specifies whether blank cells in a range are used when validating input data.
Min | Specifies the minimum value to be used for tests that use the BETWEEN operator.
Max | Specifies the maximum value to be used for tests that use the BETWEEN operator.
Value | Specifies the value to be tested.
ComboHide | Suppresses the list of acceptable values.
IMEMode | Specifies the status of the Input Method Editor (IME).
InputHide | Specifies whether an input dialog box is displayed during data validation.
InputTitle | Contains the title of an input dialog box displayed during data validation.
InputMessage | Contains the input message displayed during data validation.
ErrorHide | Specifies whether error messages are displayed during data validation.
ErrorStyle | Contains the style of a data validation error message.
ErrorMessage | Contains the data validation error message that is displayed when invalid data is entered.
ErrorTitle | Contains the title of an error dialog box displayed during data validation.

### Attributes

None.

## Definition

    <xsd:complexType name="DataValidationType" >
      <xsd:sequence>
        <xsd:element name="Range" type="xsd:string">
        </xsd:element>
        <xsd:element name="Type" default="AnyValue" minOccurs="0">
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:enumeration value="Custom" />
              <xsd:enumeration value="Date" />
              <xsd:enumeration value="Decimal" />
              <xsd:enumeration value="List" />
              <xsd:enumeration value="TextLength" />
              <xsd:enumeration value="Time" />
              <xsd:enumeration value="Whole" />
              <xsd:enumeration value="AnyValue" />
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="CellRangeList" minOccurs="0">
        </xsd:element>
        <xsd:element name="Qualifier" minOccurs="0">
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:enumeration value="Between" />
              <xsd:enumeration value="NotBetween" />
              <xsd:enumeration value="Equal" />
              <xsd:enumeration value="NotEqual" />
              <xsd:enumeration value="Greater" />
              <xsd:enumeration value="Less" />
              <xsd:enumeration value="GreaterOrEqual" />
              <xsd:enumeration value="LessOrEqual" />
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="UseBlank" minOccurs="0">
        </xsd:element>
        <xsd:choice>
          <xsd:sequence>
            <xsd:element name="Min" type="xsd:string" minOccurs="0">
            </xsd:element>
            <xsd:element name="Max" type="xsd:string" minOccurs="0">
            </xsd:element>
          </xsd:sequence>
          <xsd:sequence>
            <xsd:element name="Value" type="xsd:string">
            </xsd:element>
            <xsd:element name="ComboHide" minOccurs="0">
            </xsd:element>
          </xsd:sequence>
        </xsd:choice>
        <xsd:element name="IMEMode" minOccurs="0">
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:enumeration value="0" />
              <xsd:enumeration value="1" />
              <xsd:enumeration value="2" />
              <xsd:enumeration value="3" />
              <xsd:enumeration value="4" />
              <xsd:enumeration value="5" />
              <xsd:enumeration value="6" />
              <xsd:enumeration value="7" />
              <xsd:enumeration value="8" />
              <xsd:enumeration value="9" />
              <xsd:enumeration value="10" />
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="InputHide" minOccurs="0">
        </xsd:element>
        <xsd:element name="InputTitle" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="InputMessage" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="ErrorHide" minOccurs="0">
        </xsd:element>
        <xsd:element name="ErrorStyle" minOccurs="0">
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:enumeration value="Info" />
              <xsd:enumeration value="Stop" />
              <xsd:enumeration value="Warn" />
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="ErrorMessage" type="xsd:string" minOccurs="0">
        </xsd:element>
        <xsd:element name="ErrorTitle" type="xsd:string" minOccurs="0">
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp