word_formatting.Rmd
Create a macro to help standardize the look of tables outside of what can be done by R
.
Sub FormatTables()
If ActiveDocument.Tables.Count > 0 Then
Dim objTable As Object
Application.Browser.Target = wdBrowseTable
For Each objTable In ActiveDocument.Tables
objTable.AutoFitBehavior (wdAutoFitWindow)
Next
End If
End Sub