这是我当前的代码。
Sub PrintMasterTime()
Dim PropVal As Integer
PropVal = ActiveDocument.CustomDocumentProperties(MasterTime).Value
Print PropVal
End Sub
编译错误:Method not valid without suitable object
不知道为什么它不打印。"MasterTime"
是我的自定义文档属性的名称。
这是我当前的代码。
Sub PrintMasterTime()
Dim PropVal As Integer
PropVal = ActiveDocument.CustomDocumentProperties(MasterTime).Value
Print PropVal
End Sub
编译错误:Method not valid without suitable object
不知道为什么它不打印。"MasterTime"
是我的自定义文档属性的名称。