do you mean you want to populate form fields or custom properties in Word?
haven't done this but i know you have to use COM object, with that you can fill fields, here is small vb-script, with this you can manage your custoducumentproperties
Set Word = CreateObject("Word.Application")
theField = "Process phase"
nv = "."
Word.Visible = TRUE
Set filesystem = CreateObject("Scripting.FileSystemObject")
thePath = filesystem.getAbsolutePathName(".")
thePath = thePath+"/"
Set folder = filesystem.GetFolder(thePath)
Set filecollection = folder.Files
For Each file in filecollection
if right(file.name,4) = ".doc" then
Word.Documents.Open(thePath+file.name)
Select Case Word.activeDocument.ProtectionType
Case 2
Word.activeDocument.unprotect
end select
CheckCDP = False
For Each DocumentProperty In Word.activeDocument.CustomDocumentProperties
If "Process phase" = DocumentProperty.Name Then
CheckCDP = True
End If
Next
if CheckCDP = True THEN
set cd = Word.activeDocument.CustomDocumentProperties(theField)
cd.value = nv
else
'Word.activeDocument.CustomDocumentProperties.Add Name:=theField, LinkToContent:=False, Type:=msoPropertyTypeNumber, Value:=nv
' Word.activeDocument.CustomDocumentProperties.Add theField
end if
Word.activeDocument.protect(2)
Word.Documents.save()
Word.activeDocument.close
end if
Next
Word.Visible = FALSE
Word.quit
set filesystem=nothing
set folder=nothing
set filecollection=nothing