如何使mw中的书签能够被vb6访问?

发布于 2024-11-19 02:33:08 字数 373 浏览 2 评论 0原文

'我正在研究通过 vb6 语言在 .doc 文件中添加一些文本。但我找到的代码显示“

With objWord.Bookmarks
  .Item("NAME").Range.Text = txtName
  .Item("ADDRESS").Range.Text = txtAddress
  .Item("CODE").Range.Text = txtCode
  .Item("PHONE").Range.Text = txtPhone
  .Item("FAX").Range.Text = txtFax
End With

名称、地址、代码、电话、传真是书签”。

我可以在 msWord 应用程序中添加书签吗?

感谢您的回复

'Im doing some research on adding some text in a .doc file via vb6 language. But the code I found says'

With objWord.Bookmarks
  .Item("NAME").Range.Text = txtName
  .Item("ADDRESS").Range.Text = txtAddress
  .Item("CODE").Range.Text = txtCode
  .Item("PHONE").Range.Text = txtPhone
  .Item("FAX").Range.Text = txtFax
End With

the NAME,ADDRESS,CODE,PHONE,FAX are the bookmarks.

hos could i add bookmarks in msWord application?

thanks for the replies

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

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

发布评论

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

评论(1

弄潮 2024-11-26 02:33:08

Word 的版本可能会有所不同,但在 Word 2003 中,您单击插入|书签,然后在弹出的对话框中为书签命名。不要对此刻薄,但您也可以尝试打开 Word 并按 F1

The version of Word may make a difference, but in Word 2003 you click Insert|Bookmark and in the dialog window that pops up you name your bookmark. Not to be snarky about it, but you could also try opening Word and pressing F1.

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