Generate data in range A1:B10 of Sheet1 and run following code:
Code:
Sub ChartInWord()
Dim BWord As Object
Dim BDoc As Object
'create chart
Charts.Add
With Charts(1)
.ChartType = xlColumnClustered
.SetSourceData Source:=Sheets("Sheet1").Range("A1:B10"), PlotBy:= _
xlColumns
.Location Where:=xlLocationAsObject, Name:="Sheet1"
End With
ActiveChart.ChartArea.Copy
'create document Word
Set BWord = CreateObject("Word.Application")
With BWord
.Visible = True ' may not show
.documents.Add
Set BDoc = .documents(1)
.Selection.Paste
BDoc.SaveAs Filename:="c:\MyWord.doc"
.Quit
End With
Set BWord = Nothing
Set BDoc = Nothing
End Sub