Microsoft Word:添加屏幕提示会将文本更改为 {Hyperlink\| BookmarkName \o"screentip},但想要原始文本

发布于 2025-01-14 02:33:10 字数 722 浏览 3 评论 0 原文

Microsoft Word 无法在书签上添加超链接,并且每次

选择文本时都无法显示超链接文本。 输入图片此处描述

然后我从插入添加书签 ->链接->添加 输入图片此处描述

插入文档和屏幕提示时

然后,当我添加链接(ctrl+K)并通过单击书签在此处输入图像描述

它只显示此文本而不是原始文本。

输入图片这里的描述

任何人都可以提出问题实际上是什么吗?

Microsoft word fails to add hyperlink over bookmark and show Hyperlink text everytime

I select the text.
enter image description here

Then i add bookmark from Insert -> link -> add
enter image description here

Then when i add Link (ctrl+K) and go to insert document and screentip by clicking bookmark

enter image description here

It just show this text instead of original text.

enter image description here

Can anyone suggest what the issue is actually?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生生漫 2025-01-21 02:33:10

我认为这是题外话,但您在这方面的经验比我丰富。

按 Alt+F9 切换字段代码/结果的显示。

在某些计算机上,这是Fn+Alt+F9。在 Mac 上,使用 Opt 而不是 Alt。

原始文本不会出现在域代码中,但会出现在文档中。


我最初错过了你真正的问题,错误的答案如下。

这与书签的存在或不存在无关。

这是 Word 中超链接和自动图文集字段的常见行为。显示该字段时,不会出现文档中显示的文本。

我在 Microsoft 网站上关于 Word 中的弹出文本

这是字段插入对话框:

对话框的屏幕截图

以下是文档中的内容:

超链接的屏幕截图

以下是使用 Alt+F9 显示的字段代码:

字段屏幕截图code

请注意,显示文本根本不会显示在字段代码中。它仍然在那里。如果您选择该字段并在 vba 编辑器的立即窗口中输入以下内容,您将看到显示文本。

? Selection.Fields(1).Result

我怀疑这是这两个领域的起源。对于超链接字段,通常使用选定的文本创建。这并不是特别有意义,但这就是该领域的运作方式。

I think this is off-topic but you have more experience here than I do.

Press Alt+F9 to toggle display of field codes / results.

On some computers, this is Fn+Alt+F9. On Macs, use Opt instead of Alt.

The original text does not appear in the field code but is there and will show up in the document.


I originally missed your real question and the mistaken answer follows below.

This has nothing to do with the presence or absence of the bookmark.

This is the ordinary behavior of the Hyperlink and the AutoText fields in Word. The text displayed in the document does not appear when you display the field.

This is examined in my article on the Microsoft site about Pop-Up text in Word.

Here is the field insertion dialog box:

screenshot of dialog box

Here is what it looks like in the document:

screenshot of hyperlink

And here is the field code shown using Alt+F9:

screenshot of field code

Note that the display text is not shown at all in the field code. It is still there. If you select the field and enter the following in the Immediate Window of the vba editor you will see the display text.

? Selection.Fields(1).Result

I suspect this comes from the origination of these two fields. With the hyperlink field, it is often created using selected text. It does not especially make sense, but it is how the field operates.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文