F
Francois Piette
Given a document possibly having a FormField named "DocType", I want to
write a macro which get the formfield value:
01 If ActiveDocument.Bookmarks.Exists("DocType") = True Then
02 DocType = ActiveDocument.FormFields("DocType").Result
03 Else
04 DocType = "Unknown"
05 End If
This code works very well except when the FormField is within a hidden text
region. In that case, DocType is empty.
The question is: how to get the formfield value even when into a hiident
text block ?
Thanks for any help.
write a macro which get the formfield value:
01 If ActiveDocument.Bookmarks.Exists("DocType") = True Then
02 DocType = ActiveDocument.FormFields("DocType").Result
03 Else
04 DocType = "Unknown"
05 End If
This code works very well except when the FormField is within a hidden text
region. In that case, DocType is empty.
The question is: how to get the formfield value even when into a hiident
text block ?
Thanks for any help.