Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Sep 2010
    Location
    Southern California
    Posts
    52
    Thanks
    1
    Thanked 0 Times in 0 Posts

    VBA name for a field

    I have a macro that unlinks fields in a template. There are exceptions to this macro.
    A portion of the code looks like this

    Private Function mfnExcludedField(afldThisField As Field) As Boolean
    'Function returns TRUE if afldThisField has a field type
    'on the excluded list.
    ' Code Updated 06/27/11
    Select Case afldThisField.Type
    'Each excluded field type gets a Case statement
    Case wdFieldFileName:
    mfnExcludedField = True
    End Select
    End Function

    My question is, does anyone know the field name for a TOC?

    This macro is unlinking the hyperlinks in my TOC and I don't want it to.

    Thanks,
    Charlotte
    Char Q
    Pacific NW

  2. #2
    Star Lounger
    Join Date
    Sep 2010
    Location
    Southern California
    Posts
    52
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I found it....did a search for WdFieldType
    it is "WdFieldTOC"

    Thanks anyway, ya'll
    Char Q
    Pacific NW

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •