Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Sub Creatwordreport()

' Early Binding

Dim WordApp As Word.Application

Set WordApp = New Word.Application

With WordApp

.Visible = True

.Activate

.Documents.Add

With .Selection

.BoldRun

.Paragraphs.Alignment = wdAlignParagraphCenter

.TypeText "PH Trend"

.Font.Size = 16

.BoldRun

.TypeParagraph

.Font.Size = 12

Range("A1", Range("A1").End(xlDown).End(xlToRight)).Copy

.Paste

End With

End With

WordApp.ActiveDocument.SaveAs2

End Sub

You might also like