Finance

Charts

Statistics

Macros

Search

Win/Loss Sparkline In Excel VBA

Finally, here is a win-loss indicator represented by bars that distinguish positive and negative values:

Sub CreateWinLossSparkline()
    ThisWorkbook.Worksheets("Sheet8").Activate
    Range("A11").SparklineGroups.Add _
        xlSparkColumnStacked100, "A1:A10"
End Sub

Explanation:
The element xlSparkColumnStacked100 from the xlSparkType enumeration creates a sparkline that visually differentiates between positive and negative values using stacked columns.

0 0 votes
Évaluation de l'article
S’abonner
Notification pour
guest
0 Commentaires
Le plus ancien
Le plus récent Le plus populaire
Online comments
Show all comments
Facebook
Twitter
LinkedIn
WhatsApp
Email
Print
0
We’d love to hear your thoughts — please leave a commentx