Microsoft Word 2016表单元格中的条件格式 [英] Conditional Formatting in Microsoft Word 2016 Table Cells

查看:693
本文介绍了Microsoft Word 2016表单元格中的条件格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张表,它是我正在为一个项目做的测试计划的表格,在表的末尾有一列,其中的2个值将为Y(通过标准)或N(表示)无法通过标准)

I have a table and it is for a test plan I am doing for a project, there is a column at the end of the table where the 2 values in it will be Y (passed the criteria) or N (didn't pass the criteria)

Microsoft Word中是否有一种方法可以更改行尾文本的颜色,并在其末尾添加N值,因此可以更容易地发现不符合条件的地方.

Is there a way in Microsoft Word to change the colour of the text on the row with the value of N at the end, this makes it easier to spot the places where it failed the criteria.

我知道您可以执行查找和替换方法,但是我想知道是否有一种方法可以自动执行此操作,因此当用户输入N时,它将整行更改为红色,而当他们输入Y时,将其更改为正常

I know you can do the find and replace method but I was wondering if there was a way to do this automatically so when the user enters N it changes the whole row to red and when they enter Y it changes it back to normal.

这是我的桌子的屏幕截图:

Here is a screenshot of my table:

非常感谢您指出我可能错过的文章的正确方向,或者直接给出了答案.

A point in the right direction to an article I may have missed or a direct answer would be greatly appreciated, thanks.

推荐答案

我看到您可以从以下四种方式进行操作:

I see four ways you can go from here:

  1. 创建一个VBA宏,一旦更改文档中的某些内容并更新表,该宏就会自动跳入.这将迫使您保存文件扩展名为* .docm的文档.
  2. 或者您创建两种样式(字符类型),这些样式可以自动格式化表格Cell及其所需的内容.您需要通过建议用户来指导他们如何使用这些样式,或者您还可以在文档中提供单独的按钮来调用将应用这些样式的宏.同样,在这里,宏选项会强制您保存文件扩展名为* .docm的文档.
  3. 另一种选择是将Word文档与OLE Microsoft Excel对象一起使用.缺点是用户需要知道如何使用此嵌入式Excel对象.
  4. 您可以使用的第三种方法是使用Microsoft Excel并使用Excel的内置条件格式.如果需要将结果保存在Word文档中,您仍然可以将表复制回Word.

注意:

我特别提到文档文件扩展名* .docm,因为当您通过电子邮件发送文档时,这可能会导致文档显得危险.执行google搜索,以了解有关包含宏的Microsoft Office文档的更多信息.

I especially mention the document file extension *.docm because this can cause your document to appear dangerous when you send it by email. Perform a google search to read more about Microsoft Office documents containing macros.

这篇关于Microsoft Word 2016表单元格中的条件格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆