Hi macropod,
Thanks for you info. I would like to ask more on the MathType problem.
I'm not familiar with the MathType equation. I just wonder is that enough to
those fields by only checking the type equal to 58,51 and 12? Will it be
chance that other MathType equation using other fields type? Or some other
stuff will have fields type using 58, 51, 12?
Many Thanks
:
Hi vbaNOOB,
You could try something based on the UnlinkSpecificFields code at:
http://gregmaxey.mvps.org/Field_Macros.htm. For example:
Sub UnlinkSpecificFields()
Dim pRange As Word.Range
Dim oFld As Word.Field
For Each pRange In ActiveDocument.StoryRanges
Do
For Each oFld In pRange.Fields
Select Case oFld.Type
Case 12, 51, 58
'Do Nothing
Case Else
oFld.Unlink
End Select
Next
Set pRange = pRange.NextStoryRange
Loop Until pRange Is Nothing
Next
End Sub
Do note, though, that there is no Word field type that corresponds with a Mathtype field, per se. The above code simply preserves
the type #s you've nominated.
--
Cheers
macropod
[MVP - Microsoft Word]
Hi all,
I would like to unlink all field codes in the document except Mathtype.
I've check one of my document that Mathtype have field.type equal to 58, 51,
12
I'm new to Mathtype and field codes, I just wonder if I can identfy Mathtype
by checking the field.type?
Many Thanks