Try this sample:
Code:
Public Sub addchart()
'This sample adds a chart to the current sheet. The named parameters will hopefully make it easier to understand.
Dim ch As ChartObject, iLeft As Integer, iTop As Integer, iWidth As Integer, iHeight As Integer
iLeft = 25
iTop = 10
iWidth = 200
iHeight = 100
Set ch = ActiveSheet.ChartObjects.Add(iLeft, iTop, iWidth, iHeight)
ch.Chart.SetSourceData Source:=Range("Sheet1!$A$10:$B$14"), PlotBy:=xlColumns
ch.Chart.ChartType = xlColumnStacked
End Sub
Hope this helps point in the right direction.