如何在 MS Word 中的每个标题末尾应用宏?
我有一个包含各种标题的文档(因此不一定是标题 1 或标题 2 - 而是所有类型的标题)。
我想做的是编写一个宏,例如删除每个标题末尾的 2 个空格。
例如,我们有
“这是一个标题”,
在标题的末尾,我会这样做:
Selection.Delete Unit:=wdCharacters, Count:=2
我需要将其应用在每个标题的末尾。
有谁知道该怎么做?
I have a document with various headings (so not necessarily Heading 1 or Heading 2 - but all types of headings).
What I'm trying to do is write a macro that will, for example, delete 2 spaces at the end of each heading.
For example, we have
This is a heading
At the end of heading, I will do:
Selection.Delete Unit:=wdCharacters, Count:=2
I need this to be applied at the end of each heading.
Does anyone know how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
转到第一个标题:
转到下一个标题
检查您所在的位置以查看是否已到达最后一个标题:
转到当前标题的末尾(例如,要删除字符:
Goto first heading:
Goto next heading
Check where you are to see if you have reached the last heading:
Goto end of current heading (for example, to delete chars: