1、对其 WORD 内容设置字体样式,以及在 WORD 中插入表格,以及表格单元格融合与填充
Option Explicit Private Sub Command1_Click() Dim filename As String CD
ShowSave filename = CD
filename OutWord filename MsgBox "OK" End Sub Private Function OutWord(ByVal filePath As String) As Boolean Dim newDoc As Word
Document Set newDoc = New Word
Document With newDoc
Paragraphs(
Paragraphs
Count)
Name = "宋体"
Paragraphs(
Paragraphs
Count)
Size = 10
Paragraphs(
Paragraphs
Count)
Alignment = wdAlignParagraphRight
Content
InsertAfter "編号:" & vbCrLf
Paragraphs(
Paragraphs
Count)
Name = "宋体"
Paragraphs(
Paragraphs
Count)
Size = 26
Paragraphs(
Paragraphs
Count)
Bold = True
Paragraphs(
Paragraphs
Count)
Alignment = wdAlignParagraphCenter
Content
InsertAfter vbCrLf & "XXXXXXXXX 報告"