OLEFormat.PreserveFormattingOnUpdate property (Word)
True preserves formatting done in Microsoft Word to a linked OLE object, such as a table linked to a Microsoft Excel spreadsheet. Read/write Boolean.
Syntax
expression. PreserveFormattingOnUpdate
expression A variable that represents a 'OLEFormat' object.
Remarks
When PreserveFormattingOnUpdate is set to True, formatting changes made to the object in Word is preserved when the object is updated. Word updates only the content in the linked object.
Example
This example preserves the formatting of the first shape in the current document, assuming the first shape in the document is a linked OLE object.
Sub PreserveFmtg()
ActiveDocument.Shapes(1).OLEFormat _
.PreserveFormattingOnUpdate = True
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for