Home>Blogs>Charts and Visualization>Info-graphics: Animated Hour Glass Chart in Excel
Animated Hour Glass Chart
Charts and Visualization

Info-graphics: Animated Hour Glass Chart in Excel

Animated Hour Glass Chart in Excel has been designed to display the KPI metrics like – Service Level, Quality Score, and Productivity etc. Whenever the value of metric will be changes it will show an animation like below given image.

Animated Hour Glass Chart in Excel

Animated Hour Glass Chart in Excel

  

We have put the below given code on Worksheet Change event to show the animation

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)

Dim i As Integer

If Target.Address = "$B$2" Then

       For i = 0 To Int(Target.Value * 100)

       VBA.DoEvents

        ActiveSheet.Range("N1").Value = i / 100

    Next i

       ActiveSheet.Range("N1").Value = Target.Value

   End If

If Target.Address = "$B$3" Then

       For i = 0 To Int(Target.Value * 100)

    VBA.DoEvents

        ActiveSheet.Range("N2").Value = i / 100

    Next i

    ActiveSheet.Range("N2").Value = Target.Value

   End If

If Target.Address = "$B$4" Then

       For i = 0 To Int(Target.Value * 100)

    VBA.DoEvents

        ActiveSheet.Range("N3").Value = i / 100

    Next i

    ActiveSheet.Range("N3").Value = Target.Value

   End If

End Sub

 

Visit our YouTube channel to learn step-by-step video tutorials

Youtube.com/@PKAnExcelExpert

Watch the Video tutorial of Animated Hour Glass Chart

PK
Meet PK, the founder of PK-AnExcelExpert.com! With over 15 years of experience in Data Visualization, Excel Automation, and dashboard creation. PK is a Microsoft Certified Professional who has a passion for all things in Excel. PK loves to explore new and innovative ways to use Excel and is always eager to share his knowledge with others. With an eye for detail and a commitment to excellence, PK has become a go-to expert in the world of Excel. Whether you're looking to create stunning visualizations or streamline your workflow with automation, PK has the skills and expertise to help you succeed. Join the many satisfied clients who have benefited from PK's services and see how he can take your Excel skills to the next level!
https://www.pk-anexcelexpert.com

Leave a Reply