Hi,
I'm having a problem with a chart that I'm pasting from an excel sheet to an email: I can't set the size of the chart.
Can you help me please?
I tried to add
.LockAspectRatio =msoFalse
.Height = 1000
.Widht = 1000
But it didn't work.
Thanks a lot!
I'm having a problem with a chart that I'm pasting from an excel sheet to an email: I can't set the size of the chart.
Can you help me please?
VBA Code:
Set oLookApp = GetObject(, "Outlook.Application")
Set ChrtObj = ActiveSheet.ChartObjects(1)
ChrtObj.Chart.ChartArea.Copy
With oLookItm
.To = "xyz"
.CC = "abc"
.HTMLBody "aaaaa"
Set oWdEditor = .GetInspector.WordEditor
Set oWdRng = oWdEditor.Application.ActiveDocument.Content
oWdRng.InsertAfter " " & vbNewLine
oWdRng.Collapse Direction:=wdCollapseEnd
oWdRng.Paste
I tried to add
.LockAspectRatio =msoFalse
.Height = 1000
.Widht = 1000
But it didn't work.
Thanks a lot!