Excel VB ChartWizard

Diskutiere und helfe bei Excel VB ChartWizard im Bereich Microsoft Office im Windows Info bei einer Lösung; I create 3 Charts through a macro. With the ChartWizard method I apply certain arguments to the chart. Now I wanted to change the look by using... Dieses Thema im Forum "Microsoft Office" wurde erstellt von Oliver Hochuli, 16. März 2021.

  1. Excel VB ChartWizard


    [COLOR=rgba36, 39, 41, 1]I create 3 Charts through a macro. With the ChartWizard method I apply certain arguments to the chart. Now I wanted to change the look by using gallery:= "xILine, xIColumn". No matter what I do, the charts won't change there look. It's always showing me 3 Standard-Column Charts. I know coding the fragment for every chart once isn't the best solution, maybe it doesn't work because of this... Appreciate every idea, thanks![/COLOR]


    [COLOR=var--highlight-keyword]Sub[/COLOR][COLOR=var--highlight-color] chart[/COLOR]

    [COLOR=var--highlight-color][COLOR=var--highlight-comment]'Lege Bereich in Excel fest für Grafik 0[/COLOR] [COLOR=var--highlight-keyword]Dim[/COLOR] rng [COLOR=var--highlight-keyword]As[/COLOR] Range [COLOR=var--highlight-keyword]Set[/COLOR] rng = Range[COLOR=var--highlight-variable]"C3:K13"[/COLOR][COLOR=var--highlight-comment]'Grafik mit verschiedenen Parametern erstellen per ChartWizard Funktion[/COLOR] [COLOR=var--highlight-keyword]Set[/COLOR] co = ActiveSheet.ChartObjects.Addrng.Left, rng.Top, rng.Width, rng.Height co.chart.ChartWizard Source:=Range[COLOR=var--highlight-variable]"$U$3:$AF$3, $U$7:$AF$7, $U$9:$AF$9"[/COLOR] _ , _ Gallery:=xIColumn, Format:=[COLOR=var--highlight-namespace]12[/COLOR], PlotBy:=xlRows, _ CategoryLabels:=[COLOR=var--highlight-namespace]1[/COLOR], SeriesLabels:=[COLOR=var--highlight-namespace]0[/COLOR], HasLegend:=[COLOR=var--highlight-namespace]1[/COLOR] co.chart.ChartColor = [COLOR=var--highlight-namespace]26[/COLOR] co.chart.SeriesCollection[COLOR=var--highlight-namespace]1[/COLOR].Name = [COLOR=var--highlight-variable]"Projektertrag"[/COLOR] co.chart.SeriesCollection[COLOR=var--highlight-namespace]2[/COLOR].Name = [COLOR=var--highlight-variable]"Projektkosten"[/COLOR] [COLOR=var--highlight-comment]'Lege Bereich in Excel fest für Grafik 1[/COLOR] [COLOR=var--highlight-keyword]Dim[/COLOR] rng1 [COLOR=var--highlight-keyword]As[/COLOR] Range [COLOR=var--highlight-keyword]Set[/COLOR] rng1 = Range[COLOR=var--highlight-variable]"C15:K25"[/COLOR][COLOR=var--highlight-comment]'Grafik mit verschiedenen Parametern erstellen per ChartWizard Funktion[/COLOR] [COLOR=var--highlight-keyword]Set[/COLOR] co = ActiveSheet.ChartObjects.Addrng1.Left, rng1.Top, rng1.Width, rng1.Height co.chart.ChartWizard Source:=Range[COLOR=var--highlight-variable]"$U$3:$AF$3, $U$23:$AF$23, $U$25:$AF$25"[/COLOR] _ , _ Gallery:=xILine, Format:=[COLOR=var--highlight-namespace]12[/COLOR], PlotBy:=xlRows, _ CategoryLabels:=[COLOR=var--highlight-namespace]1[/COLOR], SeriesLabels:=[COLOR=var--highlight-namespace]0[/COLOR], HasLegend:=[COLOR=var--highlight-namespace]1[/COLOR] co.chart.ChartColor = [COLOR=var--highlight-namespace]26[/COLOR] co.chart.SeriesCollection[COLOR=var--highlight-namespace]1[/COLOR].Name = [COLOR=var--highlight-variable]"Ergebnis kum. [CHF]"[/COLOR] co.chart.SeriesCollection[COLOR=var--highlight-namespace]2[/COLOR].Name = [COLOR=var--highlight-variable]"Zielwert [CHF]"[/COLOR] [COLOR=var--highlight-comment]'Lege Bereich in Excel fest für Grafik 2[/COLOR] [COLOR=var--highlight-keyword]Dim[/COLOR] rng2 [COLOR=var--highlight-keyword]As[/COLOR] Range [COLOR=var--highlight-keyword]Set[/COLOR] rng2 = Range[COLOR=var--highlight-variable]"C27:K38"[/COLOR][COLOR=var--highlight-comment]'Grafik mit verschiedenen Parametern erstellen per ChartWizard Funktion[/COLOR] [COLOR=var--highlight-keyword]Set[/COLOR] co = ActiveSheet.ChartObjects.Addrng2.Left, rng2.Top, rng2.Width, rng2.Height co.chart.ChartWizard Source:=Range[COLOR=var--highlight-variable]"$U$3:$AF$3, $U$35:$AF$35, $U$17:$AF$17"[/COLOR] _ , _ Gallery:=xILine, Format:=[COLOR=var--highlight-namespace]12[/COLOR], PlotBy:=xlRows, _ CategoryLabels:=[COLOR=var--highlight-namespace]1[/COLOR], SeriesLabels:=[COLOR=var--highlight-namespace]0[/COLOR], HasLegend:=[COLOR=var--highlight-namespace]1[/COLOR] co.chart.ChartColor = [COLOR=var--highlight-namespace]26[/COLOR] co.chart.SeriesCollection[COLOR=var--highlight-namespace]1[/COLOR].Name = [COLOR=var--highlight-variable]"Vorleistungen kum"[/COLOR] co.chart.SeriesCollection[COLOR=var--highlight-namespace]2[/COLOR].Name = [COLOR=var--highlight-variable]"Vorleistungen"[/COLOR] [/COLOR]

    [COLOR=var--highlight-keyword]End[/COLOR][COLOR=var--highlight-color] [/COLOR][COLOR=var--highlight-keyword]Sub[/COLOR]
     
  2. PeterMoenner Win User

    Bedingte Formatierung

    Hallo Claus, kannst du mir das in VB-Excel geben
    <br />Danke Gruß Peter
    <br />
  3. Hajo Win User

    Exceldatei vor kopieren Schützen und Blattschutz erweitern

    Hallo Mario,

    in Excel istt nichts sicher. Kopieren geht auch im Windows Explorer.

    Sicherer bekomnmmst Du es vielleicht, falls Du Teile mit VB auslagerst.



    Gruß
  4. majch_1605 Win User

    Excel VB Fehlermeldung

    cmd /c “echo off | clip”

    Das soll das Clipboard leeren. Kein Erfolg!
  5. Claus Busch Win User

    Excel VB Fehlermeldung

    Hallo,

    dies ist ein Befehl der, in der Eingabeaufforderung eingegeben, die Windows-Zwischenablage löscht. Damit wird deine Office-Zwischenablage aber nicht gelöscht und außerdem ist dies kein VBA-Befehl und deswegen in deinem Code absolut falsch.

    Poste besser mal deinen kompletten Code damit man dir helfen kann.

    Claus
  6. Claus Busch Win User

    Excel VB Fehlermeldung

    Hallo,

    poste mal hier deinen Code.

    Claus
  7. User Advert


    Hi,

    willkommen im Windows Forum!
Thema:

Excel VB ChartWizard - Microsoft Office

Die Seite wird geladen...

Excel VB ChartWizard - Similar Threads - Excel ChartWizard

Forum Datum

Kennt sich jemand gut mit Microsoft Excel und PowerPoint aus?

Kennt sich jemand gut mit Microsoft Excel und PowerPoint aus?: Ich mache gerade meine Zertifizierungen als Oberstufenschüler und hänge bei der letzten wirklich fest, weil es keine Übungsaufgaben gibt. Außerdem bin ich total schlecht in Microsoft Excel, weil...
Microsoft Office Donnerstag um 14:17 Uhr

Problems with Free Excel to VCF Tools and How Premium Tools Help?

Problems with Free Excel to VCF Tools and How Premium Tools Help?: Problems like lost phone numbers, incorrect name order, invalid vCard versions, or incomplete addresses are frequently caused by free Excel to VCF tools. Large Excel files are not supported by...
Software 22. November 2025

Is a Paid Offline Excel to VCF Converter Worth It Compared to Free Online Tools?

Is a Paid Offline Excel to VCF Converter Worth It Compared to Free Online Tools?: Free online tools frequently provide incomplete conversions, limited file sizes, and leak data online. They are unreliable for both personal and professional interactions because of these...
Software 21. November 2025

Automatisches speichern bei Excel

Automatisches speichern bei Excel: Hallo,wie kann man Excel davon abhalten einem jedes Mal mitzuteilen, dass automatisches speichern deaktiviert ist?Ich weiß, dass es deaktiviert ist, weil es so sein soll.Danke!
Microsoft Office 15. Juli 2025

ein VBA-Programm in excel gibt ein falsche Antwort

ein VBA-Programm in excel gibt ein falsche Antwort: Ich habe ein Excel-Datei im .csv - Format gespeichert. Klicke ich die Datei mit der Maus zum öffnen an, ist der Inhalt so wie er sein soll.Außerdem habe ich ein Excel-Datei mit einem VBA-Makro....
Microsoft Office 14. Juli 2025

Excel

Excel: Ich möchte in Spalte D Zeile 3 bis 29 immer den letzten Eintrag Wert in D Zeile 31 übernehmen oder kopieren
Microsoft Office 12. Juli 2025

Daten aus Semantischen Modell/Power BI in Excel

Daten aus Semantischen Modell/Power BI in Excel: Ich habe in Power BI ein Semantisches Modell mit mehreren Tabellen. In Excel habe ich aus diesen Tabellen eine Abfrage erstellt. Ich möchte nachträglich in die Tabelle in Excel eine weitere Spalte...
Microsoft Office 3. Juli 2025
Excel VB ChartWizard solved
  1. Diese Seite verwendet Cookies, um Inhalte zu personalisieren, diese deiner Erfahrung anzupassen und dich nach der Registrierung angemeldet zu halten.
    Auf dieser Website werden Cookies für die Zugriffsanalyse und Anzeigenmessung verwendet.
    Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies.