VBA teine ​​funktsioon

Teine kirjeldus

Tagastab esitatud aja teise komponendi.

Teised lihtsad näited

Siin on lihtne teine ​​näide:

123 Sub Second_Example ()MsgBox Second (#1: 30:25 AM#)End Sub

See kood tagastab 25.

Teine süntaks

VBA redaktoris saate teise funktsiooni süntaksi nägemiseks tippida "Second ("):

Teine funktsioon sisaldab argumenti:

Aeg: Kehtiv aeg.

Excel VBA teise funktsiooni näited

1 MsgBox Second ("01.01.2019 13:30:20")

Tulemus: 20

1 MsgBox Second (#8/14/2019 17:12:15#)

Tulemus: 15

1 MsgBox Second ("1:30:35 AM")

Tulemus: 35

wave wave wave wave wave