kevvukeka
04-10-2013, 09:41 AM
Hi All,
I have one chart on each slide of my presentation. except few for many of them I need to set the height, width and Horizontal and vertical postions.
As a beginner I could only write the below code. I just want to select each chart and run this code so that the setting are done. but when i run this code, the chart dissapears from the slide. Can somebody help whats wrong with the below code:
Sub chart()
With ActiveWindow.Selection.ShapeRange
.Height = 4.93
.Width = 9.68
.Left = 0.16
.Top = 1.96
End With
End Sub
I have one chart on each slide of my presentation. except few for many of them I need to set the height, width and Horizontal and vertical postions.
As a beginner I could only write the below code. I just want to select each chart and run this code so that the setting are done. but when i run this code, the chart dissapears from the slide. Can somebody help whats wrong with the below code:
Sub chart()
With ActiveWindow.Selection.ShapeRange
.Height = 4.93
.Width = 9.68
.Left = 0.16
.Top = 1.96
End With
End Sub