Word 2013 Convert All Quick Parts Fields To Text With VBA

Hi,

In Word 2013, I would like to convert all my Quick Part Fields to Text with with VBA.  Could someone please help me with this.

Thanks,
Gary
tgtg7Asked:
Who is Participating?
 
GrahamSkanConnect With a Mentor RetiredCommented:
I think that you just mean 'Fields'. One way of inserting Word document fields is via the Quick Parts dropdown. I don't think that there is a particular Quick Parts Field.
So, you can use:
Sub FixFields()
    Dim fld As Field
    For Each fld In ActiveDocument.Fields
        fld.Unlink
    Next fld
End Sub

Open in new window

0
 
tgtg7Author Commented:
Thanks, That is exactly what I needed!
0
 
tgtg7Author Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for tgtg7's comment #a40594385

for the following reason:

Thanks, this is exactly what I needed.
0
 
GrahamSkanRetiredCommented:
From the last comment, I don't think that tgtg7 meant to close it that way
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.