View Single Post
 
Old 03-10-2016, 02:41 AM
shammi_raj shammi_raj is offline Windows XP Office 2013
Novice
 
Join Date: Mar 2016
Posts: 5
shammi_raj is on a distinguished road
Default

Thank you Paul. I want to find the titles of each field. I found a work around with a VB code. Between VB - Quick Watch and Text-to-column on excel, i was able to do it.

Code:
Sub CountFields()
    Dim iCnt As Integer
    Dim f As Field
    iCnt = ActiveDocument.Fields.Count
    Dim CCtrl As ContentControl
    Dim alltitles As String
    For Each CCtrl In ActiveDocument.ContentControls
    
        alltitles = CCtrl.Title & ";" & alltitles
    Next
    MsgBox alltitles
End Sub
I added a quick watch on msgBox. Copied all fields-titles and uses excel
Reply With Quote