|
|
The VBA HOUR Function
DescriptionThe VBA Hour Function returns the hour component of a supplied time. The syntax of the function is:
Hour( time )
ExampleA simple example of the VBA Hour function is shown below:
After running the above snippet of VBA code, the variable 'HourNum' holds the value 17, which is the hour component of the supplied time "17:56:33". |
|||
|
|
Copyright © 2008-2011 ExcelFunctions.net |