Creating resizing macro - select chart as object?
- From: ellinoz <ellinoz@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 3 Apr 2008 06:45:02 -0700
Hi,
I'm trying to create a macro in Excel so that I can click onto a chart and
resize it without having to select the "Select Objects" arrow in the drawing
toolbar (this is for very PC illterate folk). I recorded the macro and got
this text:
Sub Chart_two_third_width()
'
' Chart_two_third_width Macro
' Macro recorded 03/04/2008 by IT
'
'
Active***.Shapes("Chart 1").Select
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = 178.5
Selection.ShapeRange.Width = 340.5
With Selection
.Placement = xlMove
.PrintObject = True
End With
End Sub
However, it doesn't work and I have a sneaking suspicion that I need to get
something in there that will select the chart as an object rather than a
chart.
Can anyone help at all? I'm (quite clearly) winging it with Visual Basic!
Many thanks,
ellinoz
.
- Prev by Date: text disapearing in a text box
- Next by Date: source data of varying sizes
- Previous by thread: text disapearing in a text box
- Next by thread: source data of varying sizes
- Index(es):