Rahul Agarwal
New Member
I have to create a macro for exporting charts of different dimensions in excel files into a word documentation. By using the below code charts are copying but with different dimensions. suggest a working code for the required query.
Code:
'Copying chart and selecting bookmark in activedocument
ActiveDocument.Bookmarks(BM_name).Select
sheet.Sheets(Tab_name).ChartObjects(Chart_name).Chart.CopyPicture _
Appearance:=xlScreen, Size:=xlScreen, Format:=xlPicture
'Pasting of selected chart
Selection.Paste
With ActiveDocument
.InlineShapes.Height = 200
.InlineShapes.Width = 200
End With