I am using the following code to save an automatically generated pie chart in a general field in Excel:
.ActiveChart.Location(2,oSheet.Name)
I actually want to save it as an embedded object instead of a sheet. I have tried xlLocationAsObject instead of the "2" but it does not recognize this. Is there another numerical code for save as object. If so, how would you put the name in?
Thanks in Advance
.ActiveChart.Location(2,oSheet.Name)
I actually want to save it as an embedded object instead of a sheet. I have tried xlLocationAsObject instead of the "2" but it does not recognize this. Is there another numerical code for save as object. If so, how would you put the name in?
Thanks in Advance