Visual Basic Chart Moving
Not sure what you mean by this
The program generates but after it moves the cahrts i
can not find them.
Do you mean code can no longer find the chart in future attempts, ie the
chart does not exist on the sheet, or you cannot visually locate it.
What do you mean by "specific area". Following is a guess at what you are
after
Sub test()
Dim cel As Range
Dim chtObj As ChartObject
Set chtObj = ActiveSheet.ChartObjects("Chart 1")
Set cel = Range("D4")
With cel
chtObj.Left = cel.Left
chtObj.Top = cel.Top
End With
End Sub
Regards,
Peter T
"playerbigdog" wrote in message
...
How do you move a specific chart to specific area. Here is the original
code
(done in 2003 format). The program generates but after it moves the cahrts
i
can not find them.
ActiveSheet.ChartObjects("Chart 2").Activate
ActiveChart.ChartArea.Select
ActiveSheet.Shapes("Chart 2").IncrementLeft 866#
ActiveSheet.Shapes("Chart 2").IncrementTop 300#
|