Return to VBA Code Examples

VBA Second Function

Second Description

Returns the second component of a supplied time.

Simple Second Examples

Here is a simple Second example:

This code will return 25.

Second Syntax

In the VBA Editor, you can type  “Second(” to see the syntax for the Second Function:

The Second function contains an argument:

Time: A valid time.

Examples of Excel VBA Second Function

Result: 20

Result: 15

Result: 35

VBA Coding Made Easy

Stop searching for VBA code online. Learn more about AutoMacro - A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users! vba save as

Learn More!