drom
Well-known Member
- Joined
- Mar 20, 2005
- Messages
- 543
- Office Version
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
Hi and Thanks in advance!
I am inserting a chart from Excel to Word, (works Fine)
But after I Insert the Excel Chart named "Chart3" in my ActiveSheet
How can I resize this pasted Chart/Picture/Shape ??
My Pasted Chart/Picture/Image in X times bigger than the Active WordDocument
I am inserting a chart from Excel to Word, (works Fine)
VBA Code:
On Error Resume Next: Application.ScreenUpdating = False
Dim wsFilterRp As String: wsFilterRp = Fx_wShtName(X:=180)
Dim obChart3 As ChartObject: Set obChart3 = ActiveSheet.ChartObjects("Chart3")
Dim WordApp As Object: Set WordApp = GetObject(, "Word.Application")
Dim WordDoc As Object
If WordApp Is Nothing Then
Set WordApp = CreateObject("Word.Application")
End If
WordApp.Visible = True
Set WordDoc = WordApp.Documents.Add
WordDoc.Select
obChart3.Chart.ChartArea.Copy
Application.Wait Now + TimeValue("00:00:02")
WordApp.Selection.PasteAndFormat 13
But after I Insert the Excel Chart named "Chart3" in my ActiveSheet
How can I resize this pasted Chart/Picture/Shape ??
- So that it measures as the width of the Wrod Document, page.
My Pasted Chart/Picture/Image in X times bigger than the Active WordDocument