Question : Export Ms Word Doc Custom Properties to another Word Doc

Is it possible to export custom properties from one Ms Word document to another? The reason for doing this is because one of my word docs has too many custom properties. Please advice.

Thanks

Answer : Export Ms Word Doc Custom Properties to another Word Doc

That seems a strange request.

You can use the macro in the snippet to copy those that aren't linked to the actual document.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
Sub MoveProperties()
    Dim Doc1 As Document
    Dim Doc2 As Document
    Dim prop As DocumentProperty
    
    Set Doc1 = ActiveDocument
    Set Doc2 = Documents.Add
    For Each prop In Doc1.CustomDocumentProperties
        If prop.LinkToContent = False Then
            Doc2.CustomDocumentProperties.Add prop.Name, False, prop.Type, prop.Value
        End If
    Next prop
End Sub
Open in New Window Select All
Random Solutions  
 
programming4us programming4us