Код выглядит примерно так:Private Sub cmdSoilReport_Click()
Dim WordApp As Object
Dim DocWord As Object
Set WordApp =
CreateObject("Word.Application")
Set DocWord = WordApp.Documents.Add
DocWord.Application.Selection.PageSetup.LeftMargin =
CentimetersToPoints(3)
DocWord.Application.Selection.PageSetup.RightMargin =
CentimetersToPoints(1.5)
DocWord.Application.Selection.PageSetup.TopMargin =
CentimetersToPoints(2)
DocWord.Application.Selection.PageSetup.BottomMargin
= CentimetersToPoints(2)
. . .
Здесь идет создание таблиц и их заполнение
атрибутами
. . .
WordApp.Visible = True
End
Sub