ie设置微软雅黑样式乱了_如何将Microsoft Word文档中的所有超链接恢复为默认的蓝色样式?...

ie设置微软雅黑样式乱了_如何将Microsoft Word文档中的所有超链接恢复为默认的蓝色样式?...

ie设置微软雅黑样式乱了

ie设置微软雅黑样式乱了_如何将Microsoft Word文档中的所有超链接恢复为默认的蓝色样式?...

We have all done it at one time or another and accidentally changed the style on an important element in a Microsoft Word document we are working on. It can be easy to patch up if it is something small, but what if it is not that simple? Today’s SuperUser Q&A post provides some quick and easy methods to help patch up a reader’s Microsoft Word document.

我们一次或一次都完成了此操作,并且不小心更改了我们正在处理的Microsoft Word文档中一个重要元素的样式。 如果它很小,可以很容易地进行修补,但是如果不是那么简单,该怎么办? 今天的SuperUser Q&A帖子提供了一些快速简便的方法来帮助修补读者的Microsoft Word文档。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

问题 (The Question)

SuperUser reader Rox wants to know how to return all the hyperlinks in a Microsoft Word document back to their original underlined blue colored text style:

超级用户阅读器Rox想知道如何将Microsoft Word文档中的所有超链接恢复为其原始的带下划线的蓝色文本样式:

I selected all the text in a Microsoft Word document and set the font color to black (which is what I wanted to do). I did not realize until it was too late that the document had hyperlinks in it (several pages in, in a very long document).

我选择了Microsoft Word文档中的所有文本,并将字体颜色设置为黑色(这是我想要做的)。 直到为时已晚,我才意识到该文档中包含超链接(在一个很长的文档中有几页)。

Now I am unable to tell where the hyperlinks are, although I know they are still working. Since there are so many hyperlinks, how can I return all of them to their default underlined blue colored text style without slowly searching through the entire document and converting each one individually?

现在,我无法知道超链接在哪里,尽管我知道它们仍在工作。 由于超链接太多,如何在不缓慢搜索整个文档并单独转换每个文档的情况下,将它们全部恢复为默认的带下划线的蓝色文本样式?

Is there an easy (and quick) way to return all the hyperlinks in a Microsoft Word document back to their original underlined blue colored text style?

是否有一种简单(快速)的方法来将Microsoft Word文档中的所有超链接恢复为其原始的带下划线的蓝色文本样式?

答案 (The Answer)

SuperUser contributors Steven and Techie007 have the answer for us. First up, Steven:

超级用户贡献者Steven和Techie007为我们提供了答案。 首先,史蒂文:

Resetting the style of all hyperlinks back to the original default requires a VBA Macro.

将所有超链接的样式重置为原始默认设置都需要VBA宏。

Code

ie设置微软雅黑样式乱了_如何将Microsoft Word文档中的所有超链接恢复为默认的蓝色样式?...

Steps

脚步

  1. Press Alt + F11 to open Microsoft Visual Basic for Applications.

    Alt + F11打开Microsoft Visual Basic应用程序。

  2. Double-click on ThisDocument.

    双击ThisDocument

  3. Paste the code from the block above into the editor.

    将上面块中的代码粘贴到编辑器中。
  4. Press F5 to run the code.

    F5键运行代码。

  5. Delete the code from the editor window to prevent Microsoft Word from saving with macros.

    从编辑器窗口中删除代码,以防止Microsoft Word与宏一起保存。

Followed by the answer from Techie007:

随后是Techie007的答案:

Assuming that the links are all still styled as hyperlinks in the document (which they should be if all you did was change the font color):

假设链接在文档中仍然都被设置为超链接(如果您所做的只是更改字体颜色,则应该为超链接):

  1. From the Home Tab on the ribbon, choose Replace (under Editing) or use the keyboard shortcut Ctrl + H.

    从功能区的“ 主页”选项卡中 ,选择“ 替换” (在“ 编辑”下)或使用键盘快捷键Ctrl + H。

  2. Click the More >> button to expand the window.

    单击更多>>按钮以展开窗口。

  3. Click in the blank Find what field near the top of the window.

    单击窗口顶部附近的空白“ 查找内容”字段。

  4. At the bottom, click on the Format drop-down menu and select Style…

    在底部,点击格式下拉菜单,然后选择样式...

  5. Choose Hyperlink from the list in the new sub-window and press OK to close the window and return to the previous one.

    从新子窗口的列表中选择“ 超链接” ,然后按OK关闭窗口并返回上一个窗口。

  6. Click in the blank Replace with field.

    单击空白的替换为字段。

  7. At the bottom, click on the Format drop-down menu and select Style… once again.

    在底部,单击格式下拉菜单,然后再次选择样式…

  8. Choose Hyperlink from the list in the new sub-window once again and press OK to close the window and return to the previous one.

    从新子窗口的列表中再次选择“ 超链接” ,然后按OK关闭窗口并返回上一个窗口。

  9. Click on the Replace All button.

    单击全部替换按钮。

ie设置微软雅黑样式乱了_如何将Microsoft Word文档中的所有超链接恢复为默认的蓝色样式?...


Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程

翻译自: https://www.howtogeek.com/234634/how-do-you-return-all-hyperlinks-in-a-microsoft-word-document-back-to-their-default-blue-style/

ie设置微软雅黑样式乱了