나는 다음을 사용하여 매크로를 당겨하는 항목에서 괄호 안에서 의견에 말씀:
'
' CommentBubble Macro
'
'
Dim myRange As Range
Set myRange = ActiveDocument.Content
searchtext = "\(*\)"
With myRange.Find
.MatchWildcards = True
Do While .Execute(findText:=searchtext, Forward:=True) = True
If Len(myRange.Text) > 4 Then
ActiveDocument.Comments.Add myRange, myRange.Text
myRange.Text = ""
End If
Loop
End With
End Sub
이유가 텍스트의 길이가 될>4 이기 때문에 이러한 법적 문서 나는 원하지 않는 분리하는 문자열이 있는 것 같은"다음과 같은 조건에서:(i)은 조건 1(ii)상태 2,etc."
그러나,여기에 조각의 텍스트는 위의 코드를 나누기:
This is sample text (with some additional text) that does stuff (with more stuff) and represents 39.4% of shares on the effective date (before giving effect, with some conditions such as ( some stuff (i) and some stuff (ii) with final stuff) and more final stuff) which is subject to (some conditions here) and conclude here.
를 실행하는 경우 당신은 다음과 같은 결과를 얻을 수 있습니다:
This is sample text that does stuff and represents 39.4% of shares on the effective date and some stuff (ii) with final stuff) and more final stuff) which is subject to and conclude here.
당신이 볼 수 있듯이 중첩되는 괄호를 일으킬 문제입니다. 특별한 조언이 있나요?
감사합니다!