'VB控制Word
'*************************************************************************************************
Dim WordApp As New Word.Application
Dim WordDoc As Word.Document
Dim WordTable As Word.Table
Dim WordCell As Word.Cell
Dim WordIS As Word.InlineShape
Dim strText As String
Dim iTableCell As Integer, iTableRow As Integer
With WordApp
.DisplayAlerts = wdAlertsNone
Set WordDoc = .Documents.Add
WordApp.Selection.ParagraphFormat.Alignment = 1
WordApp.Selection.TypeParagraph
WordApp.Selection.Font.Size = 12
WordApp.Selection.Font.Bold = -1
WordApp.Selection.TypeText "调查报告"
WordApp.Selection.TypeParagraph
WordApp.Selection.TypeParagraph
WordApp.Selection.ParagraphFormat.Alignment = 3
WordApp.Selection.Font.Size = 9
WordApp.Selection.Font.Bold = 0
Set WordCell = Nothing
Set WordDoc = Nothing
Set WordTable = Nothing
Set WordApp = Nothing
'*************************************************************************************************
MsgBox "OK"
End With
Set WordApp = Nothing
Set WordDoc = Nothing
Set WordTable = Nothing
Set WordCell = Nothing
'*************************************************************************************************
MsgBox "OK"