Sub Macro1()
Dim TimeA As Variant
Dim n As Long
Dim z As Long
z = 10
TimeA = Now()
MsgBox 100000000
Do Until n = 100000000
n = n + 1
If n = ((100000000) / z) Then
MsgBox "1/" & z & " of the way there!"
z = z - 1
MsgBox "z is " & z
End If
Loop
TimeA = Now() - TimeA
MsgBox TimeA
MsgBox n
End Sub
Sub Macro1()
Dim TimeA As Variant
Dim n As Long, x As Long, z As Long
z = 10
x = 1
TimeA = Now()
MsgBox 100000000
Do Until n = 100000000
n = n + 1
If n = (100000000 / z) * x Then
MsgBox n
MsgBox z * x & "% " & "of the way there!"
x = x + 1
End If
Loop
TimeA = Now() - TimeA
MsgBox Format(TimeA, "hh:mm:ss")
MsgBox n
End Sub
Sub Macro1()
Dim TimeA As Variant
Dim n As Long
Dim z As Long
z = 1
TimeA = Now()
MsgBox 1000000
Do Until n = 1000000
n = n + 1
If (z / 10) = (n / 1000000) Then
MsgBox z & "0% of the way there!"
z = z + 1
End If
Loop
TimeA = Now() - TimeA
MsgBox Format(TimeA, "hh:mm:ss")
MsgBox n
End Sub
Sub Macro1()
Dim TimeA As Variant
Dim n As Long, x As Long, z As Long
z = 1
TimeA = Now()
x = 67108864
MsgBox x
Do Until n = x
n = n + 1
If n = Round(x * 0.1, 0) * z Then
MsgBox z & "0% of the way there!"
z = z + 1
End If
Loop
TimeA = Now() - TimeA
MsgBox Format(TimeA, "hh:mm:ss")
MsgBox n
End Sub