1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
302dbb15cSAndrew Rist<!--***********************************************************
4*8a88591fSmseidel *
502dbb15cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
602dbb15cSAndrew Rist * or more contributor license agreements.  See the NOTICE file
702dbb15cSAndrew Rist * distributed with this work for additional information
802dbb15cSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
902dbb15cSAndrew Rist * to you under the Apache License, Version 2.0 (the
1002dbb15cSAndrew Rist * "License"); you may not use this file except in compliance
1102dbb15cSAndrew Rist * with the License.  You may obtain a copy of the License at
12*8a88591fSmseidel *
1302dbb15cSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14*8a88591fSmseidel *
1502dbb15cSAndrew Rist * Unless required by applicable law or agreed to in writing,
1602dbb15cSAndrew Rist * software distributed under the License is distributed on an
1702dbb15cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1802dbb15cSAndrew Rist * KIND, either express or implied.  See the License for the
1902dbb15cSAndrew Rist * specific language governing permissions and limitations
2002dbb15cSAndrew Rist * under the License.
21*8a88591fSmseidel *
2202dbb15cSAndrew Rist ***********************************************************-->
2302dbb15cSAndrew Rist
24cdf0e10cSrcweir<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26cdf0e10cSrcweir<topic id="textscalc0112120300xml" indexer="include" status="PUBLISH">
27cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Error Alert</title>
28cdf0e10cSrcweir<filename>/text/scalc/01/12120300.xhp</filename>
29cdf0e10cSrcweir</topic>
30cdf0e10cSrcweir</meta>
31cdf0e10cSrcweir<body>
32cdf0e10cSrcweir<section id="fehlermeldung">
33cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sc:TabPage:TP_VALIDATION_ERROR" id="bm_id3156024" localize="false"/>
34cdf0e10cSrcweir<paragraph role="heading" id="hd_id3153821" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/scalc/01/12120300.xhp" name="Error Alert">Error Alert</link></paragraph>
35cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3153379" xml-lang="en-US" l10n="U" oldref="2"><ahelp hid="SC:TABPAGE:TP_VALIDATION_ERROR">Define the error message that is displayed when invalid data is entered in a cell.</ahelp></paragraph>
36cdf0e10cSrcweir</section>
37cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154138" xml-lang="en-US" l10n="U" oldref="25">You can also start a macro with an error message. A sample macro is provided at the end of this page.</paragraph>
38cdf0e10cSrcweir<section id="howtoget">
39*8a88591fSmseidel<embed href="text/scalc/00/00000412.xhp#datengueltigfehler"/>
40cdf0e10cSrcweir</section>
41cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sc:TriStateBox:TP_VALIDATION_ERROR:TSB_SHOW" id="bm_id3154908" localize="false"/>
42cdf0e10cSrcweir<paragraph role="heading" id="hd_id3156280" xml-lang="en-US" level="2" l10n="U" oldref="3">Show error message when invalid values are entered.</paragraph>
43cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150768" xml-lang="en-US" l10n="CHG" oldref="4"><ahelp hid=".">Displays the error message that you enter in the <emph>Contents</emph> area when invalid data is entered in a cell.</ahelp> If enabled, the message is displayed to prevent an invalid entry.</paragraph>
44cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146984" xml-lang="en-US" l10n="U" oldref="5">In both cases, if you select "Stop", the invalid entry is deleted and the previous value is reentered in the cell. The same applies if you close the "Warning" and "Information" dialogs by clicking the <emph>Cancel </emph>button. If you close the dialogs with the <emph>OK</emph> button, the invalid entry is not deleted.</paragraph>
45cdf0e10cSrcweir<paragraph role="heading" id="hd_id3152460" xml-lang="en-US" level="2" l10n="U" oldref="6">Contents</paragraph>
46cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sc:ListBox:TP_VALIDATION_ERROR:LB_ACTION" id="bm_id3154014" localize="false"/>
47cdf0e10cSrcweir<paragraph role="heading" id="hd_id3148646" xml-lang="en-US" level="3" l10n="U" oldref="8">Action</paragraph>
48cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3151115" xml-lang="en-US" l10n="U" oldref="9"><ahelp hid="SC:LISTBOX:TP_VALIDATION_ERROR:LB_ACTION">Select the action that you want to occur when invalid data is entered in a cell.</ahelp> The "Stop" action rejects the invalid entry and displays a dialog that you have to close by clicking <emph>OK</emph>. The "Warning" and "Information" actions display a dialog that can be closed by clicking <emph>OK</emph> or <emph>Cancel</emph>. The invalid entry is only rejected when you click <emph>Cancel</emph>.</paragraph>
49cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sc:PushButton:TP_VALIDATION_ERROR:BTN_SEARCH" id="bm_id3154729" localize="false"/>
50cdf0e10cSrcweir<paragraph role="heading" id="hd_id3156441" xml-lang="en-US" level="3" l10n="U" oldref="10">Browse</paragraph>
51cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3153160" xml-lang="en-US" l10n="U" oldref="11"><ahelp hid="SC:PUSHBUTTON:TP_VALIDATION_ERROR:BTN_SEARCH">Opens the <link href="text/shared/01/06130000.xhp" name="Macro">Macro</link> dialog where you can select the macro that is executed when invalid data is entered in a cell. The macro is executed after the error message is displayed.</ahelp></paragraph>
52cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sc:Edit:TP_VALIDATION_ERROR:EDT_TITLE" id="bm_id3149958" localize="false"/>
53cdf0e10cSrcweir<paragraph role="heading" id="hd_id3153876" xml-lang="en-US" level="3" l10n="U" oldref="12">Title</paragraph>
54cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3149410" xml-lang="en-US" l10n="U" oldref="13"><ahelp hid="SC:EDIT:TP_VALIDATION_ERROR:EDT_TITLE">Enter the title of the macro or the error message that you want to display when invalid data is entered in a cell.</ahelp></paragraph>
55cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sc:MultiLineEdit:TP_VALIDATION_ERROR:EDT_ERROR" id="bm_id3153836" localize="false"/>
56cdf0e10cSrcweir<paragraph role="heading" id="hd_id3154510" xml-lang="en-US" level="3" l10n="U" oldref="14">Error message</paragraph>
57cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3149122" xml-lang="en-US" l10n="U" oldref="15"><ahelp hid="SC:MULTILINEEDIT:TP_VALIDATION_ERROR:EDT_ERROR">Enter the message that you want to display when invalid data is entered in a cell.</ahelp></paragraph>
58cdf0e10cSrcweir<section id="examplemakro">
59cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150752" xml-lang="en-US" l10n="U" oldref="16">
60cdf0e10cSrcweir<emph>Sample macro:</emph>
61cdf0e10cSrcweir</paragraph>
62cdf0e10cSrcweir<paragraph role="code" id="par_id5303635" xml-lang="en-US" l10n="NEW" localize="false">Function ExampleValidity(CellValue as String, TableCell as String)<br/>Dim msg as string<br/>msg = "Invalid value: " &amp; "'" &amp; CellValue &amp; "'"<br/>msg = msg &amp; " in table: " &amp; "'" &amp; TableCell &amp; "'"<br/>MsgBox msg ,16,"Error message"<br/>End Function</paragraph>
63cdf0e10cSrcweir</section>
64cdf0e10cSrcweir</body>
65cdf0e10cSrcweir</helpdocument>
66