删除特定数量的文本,直到找到打开的段落
我正在创建一个宏,允许我删除特定数量的文本,直到找到一个打开的段落。例如:
gateways (...)
ABC
DEF
GHJ
IKL
Other
我想通过搜索“gateways”一词来删除,然后删除所有文本,直到找到“Other”之前的行。问题是,“其他”之前的文本量因文档而异,并且我找不到允许我在没有错误的情况下执行此操作的宏。
I am looking to create a macro that allows me to delete a specific amount of text until it finds an open paragraph. For example:
gateways (...)
ABC
DEF
GHJ
IKL
Other
I want to delete by searching the word "gateways" and then delete all text until it finds the line before "Other". The problem is that the amount of text until "other" is variable from document to document, and I cannot find a macro that allows me to do that wothout errors.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将文本“网关”删除到空行,仅保留“其他”
如果要保留“网关”一词,请从指示的行中删除注释
To delete the text Gateway down to the empty line, leaving only Other
If you want to leave the word gateway, remove the comment from the indicated line