Morning all,
I have a document (sample below) which contains specifications representes by M: or I: and sub specs in the body represented by (M:.x) or (I:.x)
I have a piece of code that will find these but if possible could someone modify it such that after the colon numbers are added in increments of ten and the sub specs also reflect the spec that they refer.
and example of how I would like to result is shown at the bottom.
thanks
SAMPLEWith .Find .ClearFormatting .Replacement.ClearFormatting .Format = False .Wrap = wdFindStop .MatchWholeWord = True .MatchWildcards = True .MatchCase = True 'Find expressions between matched pairs of double quotes, 'allowing for the fact that 'smart quotes' may not be in use. .Text = "([MID]{1})([:]{1})([^t)]{1,})" .Execute End With
M: If the link to the WOIF fails at any point while the connection to the remote Unit is established, the control must:
- Discard any outstanding request. (M:.1)
- Close the socket connection to the remote RCC. (M:.2)
- Cancel the poll timer for the connection. (M:.3)
- Cancel the poll received timer for the connection. (M:.4)
RESULT
M:10 If the link to the WOIF fails at any point while the connection to the remote Unit is established, the control must:
- Discard any outstanding request. (M:10.1)
- Close the socket connection to the remote RCC. (M:10.2)
- Cancel the poll timer for the connection. (M:10.3)
- Cancel the poll received timer for the connection. (M:10.4)