VBA Right Function: The Right function in VBA returns a substring from the end of the given string.

Syntax

Parameter

Str (required) – This parameter represents the string from which you want to extract a substring.

Length (required) -This parameter represents the length of the substring.

Return

This function returns a substring from the end of the given string.

Example 1

Output

ld!

Excel VBA Right Function

Example 2

Output

Excel VBA Right Function

Example 3

Output

A world

Excel VBA Right Function

Pin It on Pinterest

Share This