Such coding could be easily added, however. For instance, it does not check to see if there are actually any custom properties in the source document it just assumes that there are. This code is an example of how to copy custom properties, but it is not bulletproof. "Do you want to update the value?", vbYesNoCancel, _ĪctiveDocument.CustomDocumentProperties(dp(i).Name).Value _ IntResponse = MsgBox("The custom document property (" & _ĭp(i).Name & ") already exists." & vbCrLf & vbCrLf & _ ' if Word raises an error, then allow the user MsgBox "The properties have been copied." Set dp(i) = ActiveDocument.CustomDocumentProperties(i)Ī _ If intResponse = vbNo Then Application.Run MacroName:="NextWindow"ĬustomPropCount = IntResponse = MsgBox("Are you currently in the source document?", _ ![]() "close the others and re-run the macro.",, _ (In my estimation, this capability would make a fine addition to the Organizer.) You can, however, create a macro that will do the copying for you. Unfortunately, there is no way to do this. A custom property fits the bill quite nicely for this purpose.Īs you add custom properties to a document, you may start wondering if there is an easy way to copy them from one document to another. For instance, you may have a company-assigned document number that needs to be stored with a document. Custom document properties are a great way to store unique information that is associated with a document.
0 Comments
Leave a Reply. |