vba - 在 word vba 中查找标题文本并选择下一个形状或内联形状
问题描述
在我下面的代码中,我试图在选定的文本之后找到下一个出现的形状或内联形状。
但没有任何效果......请,我需要帮助:
With Selection.Find
.Text = Text
.Replacement.Text = ""
.Forward = True
.Wrap = 1
.Format = False
.MatchCase = match_case
.MatchWholeWord = match_whole_word
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Do While f.Execute = True
s.Next(Unit:=wdParagraph, Count:=1)
r = s.Range
If s.ShapeRange.Count > 0 Then
r1.ShapeRange.Select
Exit Do
End If
Loop
解决方案
推荐阅读
- database - 服务器端预取数据库数据是否存在任何安全风险?
- sql - 如何在 SQLite 中将两列组合在一起?
- python - PyTest 弃用:'junit_family 默认值将更改为'xunit2'
- android - 创建新的 kotlin 项目时无法解决依赖关系
- multithreading - 线程中的 QProcess 有效,但有两种类型的输出错误
- wpf - ArcGIS .NET 从 WebMercator 转换为 Wgs84
- javascript - 停止制作表单以重新加载页面
- javascript - 最后如何在没有额外 AND 的情况下更好地构建这个 SQL 查询
- typo3 - 如何覆盖页面属性中的后端/制表符标签?
- c# - 在 Swagger 生成期间导入 OpenAPI 文档或 JSON