General information
Category:
COM/DCOM and OLE Automation
John,
My suggestion left something out. This should work.
oExcel.ActiveChart.SetSourceData(.Sheets("cheqsale").Range("AB4:AB8"),xlColumns)
You may need to add this line too.
oExcel.ActiveChart.Location(xlLocationAsObject,"cheqsale")
Using WITH/ENDWITH will be better.
WITH oExcel.ActiveChart
.SetSourceData(.Sheets("cheqsale").Range("AB4:AB8"),xlColumns)
.Location(xlLocationAsObject,"cheqsale")
ENDWITH
Sorry I did not notice the missing period.
Tom Molloy
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only