Solved

Word 2013 Convert All Quick Parts Fields To Text With VBA

Posted on 2015-02-02
4
311 Views
Last Modified: 2016-02-10
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
0
Comment
Question by:tgtg7
  • 2
  • 2
4 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 40584732
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
 

Author Comment

by:tgtg7
ID: 40594385
Thanks, That is exactly what I needed!
0
 

Author Comment

by:tgtg7
ID: 40594614
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
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 40594615
From the last comment, I don't think that tgtg7 meant to close it that way
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question