Fungsi Menit
Returns the minute of the hour that corresponds to the serial time value that is generated by the TimeSerial or the TimeValue function.
Sintaksis:
Minute (Angka)
Nilai hasil:
Integer
Parameter:
Number: Numeric expression that contains the serial time value that is used to return the minute value.
This function is the opposite of the TimeSerial function. It returns the minute of the serial time value that is generated by the TimeSerial or the TimeValue function. For example, the expression:
Print Minute(TimeSerial(12:30:41))
menghasilkan nilai 30.
Contoh:
Sub ExampleMinute
MsgBox "Saat ini menit "& Minute(Now)& "."
End Sub