VBA ABS Function: The ABS function in VBA returns the absolute value of the specified number.

Syntax

Parameter

Number (required) – This parameter represents the number that you want the absolute value of.

Return

This function returns the absolute value of a number.

Example 1

Output

15

VBA ABS Function

Example 2

Output

15

VBA ABS Function

Example 3

Output

1.005

VBA ABS Function

Example 4

Output

VBA ABS Function

Pin It on Pinterest

Share This