Hi all;
Hope someone can help with this one...
I've created code to import 8 tables from a specified spreadsheet as linked objects. The code then goes on to format the tables and title and footnote text. This means that the Excel document has different formatting to the Word doc so on update the formatting is taken from Excel and wipes my formatting in Word.
There is an option in Word (Edit > Links) "Preserve formatting on update", which works a treat but I can't work out how to do it with VBA code.
It is possible to do it with Shapes and Inline shapes:
Sub PreserveFmtg()
ThisDocument.Shapes(1).OLEFormat _
.PreserveFormattingOnUpdate = True
End Sub
But does anyone know of a method to do it with tables?
Thanks
Hope someone can help with this one...
I've created code to import 8 tables from a specified spreadsheet as linked objects. The code then goes on to format the tables and title and footnote text. This means that the Excel document has different formatting to the Word doc so on update the formatting is taken from Excel and wipes my formatting in Word.
There is an option in Word (Edit > Links) "Preserve formatting on update", which works a treat but I can't work out how to do it with VBA code.
It is possible to do it with Shapes and Inline shapes:
Sub PreserveFmtg()
ThisDocument.Shapes(1).OLEFormat _
.PreserveFormattingOnUpdate = True
End Sub
But does anyone know of a method to do it with tables?
Thanks