
VB如何将光标移到WORD的指定位置 20
1个回答
展开全部
试试可以吗?
Sub myTest()
'
If Selection.Information(wdWithInTable) = True Then
Selection.MoveEnd unit:=wdTable
Selection.Start = Selection.End
End If
End Sub
Sub myTest()
'
If Selection.Information(wdWithInTable) = True Then
Selection.MoveEnd unit:=wdTable
Selection.Start = Selection.End
End If
End Sub
追问
你的语句里面没有看到指定文字,肯定不是。你这应该是将光标移到文档最后吧
追答
是代码还是有问题,没考虑全,在想想吧
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询