Hello all,
I have created a file that creates tables and pastes into a Word file. For some reason file pastes tables just fine for me, but for someone else with a different Word configuration is not working properly.
I have tried pasting, paste special keeping source formatting and autofit options, but I just can't figure out why tables widths are not respected.
This is the part of the code that creates a new Word file and pastes information as it is (I have changed it many times):
This is how the tables look for me:
This is how it looks for someone else:
Please help!
I have created a file that creates tables and pastes into a Word file. For some reason file pastes tables just fine for me, but for someone else with a different Word configuration is not working properly.
I have tried pasting, paste special keeping source formatting and autofit options, but I just can't figure out why tables widths are not respected.
This is the part of the code that creates a new Word file and pastes information as it is (I have changed it many times):
Code:
Set WDApp = CreateObject("Word.Application.15") WDApp.Visible = False
Selection.Copy
WDApp.Documents.Add
WDApp.Selection.PasteAndFormat wdFormatOriginalFormatting
With WDApp.ActiveDocument.Tables(1)
.Borders(wdBorderHorizontal).LineStyle = wdLineStyleSingle
'.AutoFitBehavior (wdAutoFitWindow)
End With
This is how the tables look for me:

This is how it looks for someone else:

Please help!