![]() |
|
#4
|
||||
|
||||
|
A simple macro should do the trick
Code:
Sub Macro1()
Dim oFld As Field
For Each oFld In ActiveDocument.Fields
If oFld.Type = wdFieldSequence Then
If InStr(1, oFld.Code, "Appendix") > 0 Then
oFld.Result.InsertAfter ")"
oFld.Result.InsertBefore "("
End If
End If
Next oFld
Set oFld = Nothing
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
| Tags |
| find & replace, find replace;wildcards, word 19 |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Formula for number sequence | 14spar15 | Excel Programming | 4 | 03-18-2018 07:00 PM |
Assigning a string variable to a userform label caption
|
Larry_1 | Excel Programming | 3 | 12-18-2017 06:59 AM |
how to have two formats in the Caption style: Label – number - text?
|
Jamal NUMAN | Word | 39 | 03-14-2017 06:32 PM |
Custom caption list label lost in a new Word session
|
New Daddy | Word | 1 | 09-22-2013 09:21 AM |
| Custom caption label annoyance | zac | Word | 1 | 08-29-2010 09:56 AM |