Absolute Position of Chart Using VBA

后端 未结 1 1697
夕颜
夕颜 2020-12-19 09:32

I can use VBA to create a clustured column charty using the following code:

ActiveSheet.Shapes.AddChart.Select
ActiveChart.ChartType = xlColumnClustered


        
相关标签:
1条回答
  • Use the .Top and .Left properties
    e.g

    With ActiveSheet.Shapes("Chart 1")
        .Left = Range("C10").Left
        .Top = Range("C10").Top
    End With
    
    0 讨论(0)
提交回复
热议问题