Excel VBA TimeValue Function: The TimeValue function in VBA returns a Time from the specified String interpretation of a time /date where the date information for the given string is ignored.

Syntax

Parameter

Time (required) – This parameter represents a valid String interpretation of time.

Return

This function returns a Time from the specified String interpretation of a time /date.

Example 1

Output

9:50:45 PM

VBA TimeValue Function

Example 2

Output

9:54:24 PM

VBA TimeValue Function

Example 3

Output

VBA TimeValue Function

Pin It on Pinterest

Share This