When date field code converted to text it does not spell check document from that point forward RRS feed

  • Question

  • The date field code (and others) are defaulted to a language setting of "do not check spelling and grammer."

    This is fine until we convert a date code to text, at which point, anything new typed immediately following is not spell checked, because the conversion of date code to text  inherits the "do not check spelling and grammer" setting that the field code had.

    Any way that a user can permanently change the default language/spelling option for field codes???

    Serena K

    Thursday, August 26, 2010 2:50 PM


  • I don't know of any way to prevent date fields from being automatically marked as "do not check". But you can use this macro instead of the built-in Unlink command to unlink each date (or time) field
    in the current selection and remove its "do not check" marking. The selection can be anything from a single point to the entire document. See  http://www.gmayor.com/installing_macro.htm if needed.

    Sub DateFieldToText()
        Dim fld As Field
        Dim rg As Range, rgSave As Range
        Dim idx As Integer

        Set rgSave = Selection.Range

        If Selection.Fields.Count = 0 Then
            Selection.MoveStart unit:=wdCharacter, Count:=-10
            Selection.MoveEnd unit:=wdCharacter, Count:=10
        End If

        For idx = Selection.Fields.Count To 1 Step -1
            Set fld = Selection.Fields(idx)
            If (fld.Type = wdFieldDate) Or (fld.Type = wdFieldTime) Then
                Set rg = fld.Result
                rg.NoProofing = False
            End If

    End Sub

    Jay Freedman
    MS Word MVP  FAQ: http://word.mvps.org
    • Marked as answer by Jennifer Zhan Friday, September 3, 2010 1:46 AM
    Friday, August 27, 2010 1:24 AM