countryfan_nt
Well-known Member
- Joined
- May 19, 2004
- Messages
- 765
Hello friends, Hope all is well!
Please kindly help me with the code below.
1. Can I make it faster?
2. I want the loop to be run on decimels (e.g. 0.1, 0.2, …1.1,1.2 etc.)
Highly appreciate it in advance!
Please kindly help me with the code below.
1. Can I make it faster?
2. I want the loop to be run on decimels (e.g. 0.1, 0.2, …1.1,1.2 etc.)
Highly appreciate it in advance!
Code:
Option Explicit
Sub animatedLineChart()
Application.ScreenUpdating = False
Sheets("bmi").Range("A33").Value = 0
ActiveSheet.ChartObjects("Chart 2").Select
'ActiveChart.Axes(xlValue).Select
ActiveChart.Axes(xlValue).MinimumScale = 0
Range("A1").Select
Application.ScreenUpdating = False
Dim i As Integer
Dim XValue As Integer
For i = 0.01 To Sheets("bmi").Range("B33").Value
Worksheets("bmi").Range("xValue") = Format(i, "0.00")
DoEvents
Application.ScreenUpdating = True
Next i
Range("A1").Select
End Sub
Last edited: