下面的代码是完美的。
Sub Macro1()
Dim mySecond As Double
mySecond = 75
Dim myMinute As Double
myMinute = mySecond / 86400
'Output of the following code is 01:15 which is perfect.
Debug.Print Format(myMinute, "nn:ss")
End Sub
我想通过省略以下几行来缩短上述代码。
Dim myMinute As Double
myMinute = mySecond / 86400
是否可以?