Quote:
Originally Posted by mktate
I wasn't clear enough in my original post - the REF fields in the Unconditional text behaves properly and does not unlink (remains a field after applying code); however, the REF fields within the Conditional text does NOT behave properly and DOES unlink - with my code AND with your code.
|
That, presumably, is because your conditional text is controlled by IF fields (which you hadn't mentioned), in which case what's happening is that those get unlinked. To prevent that, you could change:
If .Type <> wdFieldRef Then
to:
If (.Type <> wdFieldRef) And (.Type <> wdFieldIf) Then