Sub test()
FName = Dir("D:\Downloads\*.doc")
Do While FName <> ""
Documents.Open FileName:="D:\Downloads\" & FName
ActiveDocument.BuiltInDocumentProperties("Title") = "标题"
On Error Resume Next
ActiveDocument.CustomDocumentProperties("myTitle").Delete
Err.Clear
On Error GoTo 0
Documents(1).CustomDocumentProperties.Add _
Name:="myTitle", LinkToContent:=False, Value:="我的标题", _
Type:=msoPropertyTypeString
ActiveDocument.Save
ActiveDocument.Close
FName = Dir
Loop
End Sub
追问这个属性没有去除完啊