Here is the code that I have so far to show word document property in a message box
Sub DocumentProperties()
Dim Output As String
Dim Prop As DocumentProperty
For Each Prop In ActiveDocument.BuiltInDocumentProperties
Output = Output + Prop.Name + " = " + Str(Prop.Value) + vbCrLf
Next
MsgBox (Output)
End Sub
I want to rewrite this code as a word macro so that it saves property
names and its values in a new excel spreadsheet. The property name
should go in column A and and property values should go in column B
Sub DocumentProperties()
Dim Output As String
Dim Prop As DocumentProperty
For Each Prop In ActiveDocument.BuiltInDocumentProperties
Output = Output + Prop.Name + " = " + Str(Prop.Value) + vbCrLf
Next
MsgBox (Output)
End Sub
I want to rewrite this code as a word macro so that it saves property
names and its values in a new excel spreadsheet. The property name
should go in column A and and property values should go in column B