Update ooo320-m1
[ooovba.git] / helpcontent2 / source / text / scalc / 01 / 12120300.xhp
blob12e0229a76d13a78dce67d8a9d91b1ce7ac92aa7
1 <?xml version="1.0" encoding="UTF-8"?>
4 <!--***********************************************************************
6 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7 *
8 * Copyright 2008 by Sun Microsystems, Inc.
10 * OpenOffice.org - a multi-platform office productivity suite
12 * $RCSfile: 12120300.xhp,v $
13 * $Revision: 1.6 $
15 * This file is part of OpenOffice.org.
17 * OpenOffice.org is free software: you can redistribute it and/or modify
18 * it under the terms of the GNU Lesser General Public License version 3
19 * only, as published by the Free Software Foundation.
21 * OpenOffice.org is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU Lesser General Public License version 3 for more details
25 * (a copy is included in the LICENSE file that accompanied this code).
27 * You should have received a copy of the GNU Lesser General Public License
28 * version 3 along with OpenOffice.org. If not, see
29 * <http://www.openoffice.org/license.html>
30 * for a copy of the LGPLv3 License.
32 ************************************************************************-->
34 <helpdocument version="1.0">
35 <meta>
36 <topic id="textscalc0112120300xml" indexer="include" status="PUBLISH">
37 <title id="tit" xml-lang="en-US">Error Alert</title>
38 <filename>/text/scalc/01/12120300.xhp</filename>
39 </topic>
40 <history>
41 <created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
42 <lastedited date="2004-07-20T14:17:15">FPE: Adjusted sample macro</lastedited>
43 </history>
44 </meta>
45 <body>
46 <section id="fehlermeldung">
47 <bookmark xml-lang="en-US" branch="hid/SC:TABPAGE:TP_VALIDATION_ERROR" id="bm_id3156024" localize="false"/>
48 <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>
49 <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>
50 </section>
51 <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>
52 <section id="howtoget">
53 <embed href="text/scalc/00/00000412.xhp#datengueltigfehler"/>
54 </section>
55 <bookmark xml-lang="en-US" branch="hid/SC:TRISTATEBOX:TP_VALIDATION_ERROR:TSB_SHOW" id="bm_id3154908" localize="false"/>
56 <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>
57 <paragraph role="paragraph" id="par_id3150768" xml-lang="en-US" l10n="U" oldref="4"><ahelp hid="SC:TRISTATEBOX:TP_VALIDATION_ERROR:TSB_SHOW">Displays the error message that you enter in the <emph>Contents</emph> area when invalid data is entered in a cell.</ahelp> If unchecked, the message is displayed to prevent an invalid entry.</paragraph>
58 <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>
59 <paragraph role="heading" id="hd_id3152460" xml-lang="en-US" level="2" l10n="U" oldref="6">Contents</paragraph>
60 <bookmark xml-lang="en-US" branch="hid/SC:LISTBOX:TP_VALIDATION_ERROR:LB_ACTION" id="bm_id3154014" localize="false"/>
61 <paragraph role="heading" id="hd_id3148646" xml-lang="en-US" level="3" l10n="U" oldref="8">Action</paragraph>
62 <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>
63 <bookmark xml-lang="en-US" branch="hid/SC:PUSHBUTTON:TP_VALIDATION_ERROR:BTN_SEARCH" id="bm_id3154729" localize="false"/>
64 <paragraph role="heading" id="hd_id3156441" xml-lang="en-US" level="3" l10n="U" oldref="10">Browse</paragraph>
65 <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>
66 <bookmark xml-lang="en-US" branch="hid/SC:EDIT:TP_VALIDATION_ERROR:EDT_TITLE" id="bm_id3149958" localize="false"/>
67 <paragraph role="heading" id="hd_id3153876" xml-lang="en-US" level="3" l10n="U" oldref="12">Title</paragraph>
68 <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>
69 <bookmark xml-lang="en-US" branch="hid/SC:MULTILINEEDIT:TP_VALIDATION_ERROR:EDT_ERROR" id="bm_id3153836" localize="false"/>
70 <paragraph role="heading" id="hd_id3154510" xml-lang="en-US" level="3" l10n="U" oldref="14">Error message</paragraph>
71 <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>
72 <section id="examplemakro">
73 <paragraph role="paragraph" id="par_id3150752" xml-lang="en-US" l10n="U" oldref="16">
74 <emph>Sample macro:</emph>
75 </paragraph>
76 <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>
77 </section>
78 </body>
79 </helpdocument>