Thema Datum  Von Nutzer Rating
Antwort
Rot Excel 03: access SetSourceData in chart in shapes.groupitems
01.06.2014 12:28:32 MC78
NotSolved
01.06.2014 12:35:35 Gast55852
NotSolved

Ansicht des Beitrags:
Von:
MC78
Datum:
01.06.2014 12:28:32
Views:
1113
Rating: Antwort:
  Ja
Thema:
Excel 03: access SetSourceData in chart in shapes.groupitems
To change chart data in a chart object grouped with a spinner i use following code, where an error occurs at the marked position. If i use curShape.select and then selection.setsourcedata... it works. Unfortunately in this case i have to manually unselect to be able to continue using the spinner. So how can i make excel to understand that curShape points to an chart object so that i can use the setsourcedata method? Dim sheetname Dim curShape As Shape sheetname = "'" + Me.Name + "'!" On Error GoTo GroupNotExisting Set curShape = Me.Shapes("RemissionChartGroup") On Error GoTo ChartNotExisting Set curShape = curShape.GroupItems("Chart") On Error GoTo UnableChangingSrcData ' *** Error occurs here !!! *** curShape.SetSourceData _ Source:=Range(sheetname + "WLChartDataRange"), _ PlotBy:=xlColumns

Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
Rot Excel 03: access SetSourceData in chart in shapes.groupitems
01.06.2014 12:28:32 MC78
NotSolved
01.06.2014 12:35:35 Gast55852
NotSolved