home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <html><head><title>单元格内容的有效性</title><meta name="filename" content="text/scalc/guide/validity"/><meta name="language" content="zh-CN"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
-
- table.Tabelle5{
- }
- span.Tabelle5A{
- width:1.005cm;}
- span.Tabelle5B{
- width:16.995cm;}
- table.Tabelle1{
- }
- span.Tabelle1A{
- width:1.005cm;}
- span.Tabelle1B{
- width:16.995cm;}
- td.Tabelle1B1{
- }
- table.Tabelle4{
- }
- span.Tabelle4A{
- width:1.501cm;}
- span.Tabelle4B{
- width:16.499cm;}
- tr.Tabelle41{
- }
- td.Tabelle4A1{
- }
- p.P1{
- }
- p.P2{
- }
- span.T1{
- font-weight:bold;}
- span.fr1{
- }
- span.fr2{
- }
- </style></head><body>
-
-
- <p class="P1"/>
- <p class="Head1"><help:key-word value="数值; 在输入时设限" tag="kw68144_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="极限值; 输入时设置" tag="kw68144_12" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="允许的单元格内容; 检查" tag="kw68144_11" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="单元格; 检查单元格的有效性" tag="kw68144_10" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="检查; 有效性" tag="kw68144_9" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="有效性; 单元格内容" tag="kw68144_8" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="单元格; 有效性" tag="kw68144_7" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="错误报告; 在输入错误时定义" tag="kw68144_6" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="操作; 在输入错误时定义" tag="kw68144_5" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="帮助文字; 在单元格输入时定义" tag="kw68144_4" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="单元格; 定义输入帮助" tag="kw68144_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="宏; 在输入错误时执行" tag="kw68144_2" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="validity" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68144">单元格内容的有效性</help:link></help:to-be-embedded></p>
- <p class="Paragraph">您可以事先对每个单元格进行定义,确定哪种类型的内容在该单元格中为有效。这样能方便使用者以特定的方式使用工作表。</p>
- <p class="Paragraph">有效性规则在输入一个新数值时生效。如果在单元格中已有一个(无效的)值,或者您以拖放或复制和粘贴的方式在单元格中加上一个值,则有效性规则不起作用。您随时可以在菜单<span class="T1">工具</span>中调用<span class="T1">侦探</span>并命令它<help:link Id="66908" xmlns:help="http://openoffice.org/2000/help">标记无效数据</help:link>。</p>
- <p class="Paragraph">有关命令 <help:link Id="66827" xmlns:help="http://openoffice.org/2000/help"><span class="T1">数据 - 有效性</span></help:link>的细节可在 <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>-帮助中找到。</p>
- <p class="Head2">您可以按以下步骤处理单元格内容的有效性</p>
- <table><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
- <p class="Paragraph">1.</p>
- </span></td><td style="text-align:left;"><span class="Tabelle5B">
- <p class="Paragraph">选中要定义新的有效性规则的单元格。您也可以采用多重选择,方法是按住<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">(命令)</help:case><help:default>(Ctrl)</help:default></help:switch>- 键按击所有要选的单元格。</p>
- </span></td></tr></table>
- <p class="Paragraph"/>
- <table border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" page-break-inside="page-break-inside:avoid"><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
- <p class="Paragraph"><draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="1" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
- </span></td><td class="Tabelle1B1" style="text-align:left;"><span class="Tabelle1B">
- <p class="Paragraph">有效性规则是单元格格式的组成部分。您可以通过<span class="T1">编辑 - 复制</span> 和 <span class="T1">编辑 - 插入内容</span>,选择 "格式" 将有效性规则复制到其他单元格中。</p>
- </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
- <p class="Paragraph"/>
- </span></td><td style="text-align:left;"><span class="Tabelle1B">
- <p class="Paragraph"><draw:image draw:style-name="fr2" draw:name="Grafik1" text:anchor-type="paragraph" svg:width="12.801cm" svg:height="12.801cm" draw:z-index="2" xlink:href="67380" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
- </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
- <p class="Paragraph"/>
- </span></td><td style="text-align:left;"><span class="Tabelle1B">
- <p class="Paragraph"/>
- </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
- <p class="Paragraph">2.</p>
- </span></td><td style="text-align:left;"><span class="Tabelle1B">
- <p class="Paragraph">调用命令<span class="T1">数据 - 有效性...</span>。您会看见对话框<span class="T1">有效性</span>及其分页。</p>
- </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
- <p class="Paragraph">3.</p>
- </span></td><td style="text-align:left;"><span class="Tabelle1B">
- <p class="Paragraph">在窗口 <span class="T1">条件</span>中可输入在单元格中新输入的数值需要符合的条件。现有的数值不受影响。</p>
- </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
- <p class="Paragraph">4.</p>
- </span></td><td style="text-align:left;"><span class="Tabelle1B">
- <p class="Paragraph">在列表框<span class="T1">允许</span>中预先设定的是 "所有的数值"。这就意味着没有任何限制。在此,您可以选择其他设定:整数、十进制、日期、时间和文字长度。</p>
- </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
- <p class="Paragraph">5.</p>
- </span></td><td style="text-align:left;"><span class="Tabelle1B">
- <p class="Paragraph">该项选择已设定了第一个条件。如果您选择 "整数",则不允许输入诸如 "12.5" 之类数值,即使这些数值符合其他条件。如果您选择 "日期",则允许以 "1.1.00" 的形式或者以 <help:link Id="66424" xmlns:help="http://openoffice.org/2000/help">串联式日期值</help:link> 的形式输入日期。类似情形也适用于 "时间", 它也只允许以 "12:00" 或串联式形式输入。对于 "文字长度" 首先要确定,单元格的内容只允许使用文字。</p>
- </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
- <p class="Paragraph">6.</p>
- </span></td><td style="text-align:left;"><span class="Tabelle1B">
- <p class="Paragraph">当在<span class="T1">允许</span>项下设定了第一个条件后,可在<span class="T1">数据</span>下选择第二个条件。根据您的不同选择,对话框在下个文本框中显示名称<span class="T1">数值</span>,<span class="T1">最小</span>和<span class="T1">最大值</span>,您可以在其中对条件作进一步明确。</p>
- </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
- <p class="Paragraph">7.</p>
- </span></td><td style="text-align:left;"><span class="Tabelle1B">
- <p class="Paragraph">在该项中可能产生的条件如下:"大于1的整数","位于10和12.5之间的十进制数","小于或等于1.1.2000的日期","不等于00:00的时间","长度大于2个字符的文字"。</p>
- </span></td></tr></table>
- <p class="Paragraph"/>
- <p class="Paragraph">于是,对于以后在该单元格中输入数值的条件便设定完成。如果出现偏差,则<help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>会显示一个标准报告,但该报告并不是总能说明问题。因此,您还要在该对话框的其他两个分页中填入内容,才能使工作表的使用者获得更多的帮助。</p>
- <ul class="L1">
- <li class="">
- <p class="P2">在分页<span class="T1">输入帮助</span>中输入提示帮助的标题和文字,当选中该单元格时,这些内容就会显示。</p>
- </li>
- <li class="">
- <p class="P2">在分页<span class="T1">错误报告</span>中,可选择在出现错误时要采用的操作步骤。</p>
- </li>
- <li class="">
- <p class="P2">如果选择操作"暂停",则无效输入将不被接受。单元格中原来的内容被保留。</p>
- </li>
- <li class="">
- <p class="P2">如果选择操作"警告"或"信息",便会看到一个对话框,它能提供中断输入操作(保留单元格中原来的数值),或者接受输入操作(接受新的数值,尽管它不符合有效性规则)的不同选择。</p>
- </li>
- <li class="">
- <p class="P2">如果选择操作"宏",则可以利用按钮<span class="T1">浏览</span>指定一个宏来处理错误。</p>
- </li>
- </ul>
- <help:embedded Id="66805" Eid="examplemakro" xmlns:help="http://openoffice.org/2000/help"/>
- <table><tr class="Tabelle41"><th class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
- <p class="Paragraph"><draw:image draw:style-name="fr1" draw:name="HIND_3" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="66732" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
- </span></th><th class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4B">
- <p class="Paragraph">如果在分页<span class="T1">错误报告</span>中改变一个单元格的操作并且以"确定"关闭对话框,则必须首先选中另外一个单元格,然后所作的改变才能生效。</p>
- </span></th></tr></table>
- <p class="Paragraph"/>
- <p class="ParaList"><help:embedded Id="65598" Eid="related" xmlns:help="http://openoffice.org/2000/help"/></p>
- <p class="ParaList"><help:link Id="66827" xmlns:help="http://openoffice.org/2000/help">数据 - 有效性</help:link></p>
- </body></html>