从Word文档中找到选定的单词
我正在尝试使用Word VBA从Word文档中找到选定的单词
Selection.find.Execute FindText:="([0-9]{1,})([To])([0-9]{1,})", MatchWildcards:=False, Forward:=True
I'm trying to find selected words from Word document using Word VBA but I'm getting stuck e.g. "25to30" anysuggestions below are the code used in wordvba
Selection.find.Execute FindText:="([0-9]{1,})([To])([0-9]{1,})", MatchWildcards:=False, Forward:=True
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关于是否有“ to”的任何一侧的空间:
或者
,除非您要使用所发现的各个组件做某事,否则没有意义。
Dpedending on whether there is a space either side of 'To':
or
And, unless you're going to do something with the individual components of what you find, there's no point having the parentheses.