我想要找到一种方法来判断我的选择范围开始,如果是这段的开始
这是我的代码
Function isStartPara(selectStart As Integer) As Boolean
If ActiveDocument.Range(Selection.Paragraphs(1).Range.Start, Selection.Paragraphs(1).Range.Start).Start = selecstart Then
isStartPara = True
Else
isStartPara = False
End If
End FunctionVBA for word是否具有内置功能?
发布于 2019-01-11 16:56:21
请尝试此函数或根据您的特定需要修改其方法。
Function IsStart() As Boolean
With Selection
IsStart = (.Start = .Paragraphs(1).Range.Start)
End With
End Functionhttps://stackoverflow.com/questions/54141335
复制相似问题