J
JO
I am trying to extract text from various ranges in a Word document.
I want the field codes to display as their codes not the resulting text.
I have:
Range.TextRetrievalMode.IncludeFieldCodes = True
MsgBox Range.Text
I get:
6/19/2007
I tried True and False, same result.
However if I do:
activewindow.view.FieldCodes = True
msgbox range.text
I get:
CREATEDATE \* MERGEFORMAT
This is what I want but I don't want to mess with the GUI. So what am I
doing wrong with the TextRetrievalMode.IncludeFieldCodes?
TIA
JO
I want the field codes to display as their codes not the resulting text.
I have:
Range.TextRetrievalMode.IncludeFieldCodes = True
MsgBox Range.Text
I get:
6/19/2007
I tried True and False, same result.
However if I do:
activewindow.view.FieldCodes = True
msgbox range.text
I get:
CREATEDATE \* MERGEFORMAT
This is what I want but I don't want to mess with the GUI. So what am I
doing wrong with the TextRetrievalMode.IncludeFieldCodes?
TIA
JO