PSWriteWord icon indicating copy to clipboard operation
PSWriteWord copied to clipboard

Feature request: unlink fields

Open drtyhlpr opened this issue 4 years ago • 0 comments

Thanks for your great script aggain!

So I would love to have a feature to covert all Fields of a Document to text:

CTRL+SHIFT+F9 or macro work around -> works https://docs.microsoft.com/en-us/office/vba/api/word.fields.unlink

With ActiveDocument.Sections(1).Range.Fields 
 .Update 
 .Unlink 
End With

I could not find any way to unlink fields with PSWrite word. I also tried to check the dll "DocX from Xceed Software" but I did not find a "unlink" functionality. I thought maybe another feature/method may be used to convert the fields to their text values but did not find any alternative solution yet.

drtyhlpr avatar May 05 '21 12:05 drtyhlpr