WorksheetFunction.Gcd (Excel)

Returns the greatest common divisor of two or more integers. The greatest common divisor is the largest integer that divides both number1 and number2 without a remainder.

If any argument is nonnumeric, Gcd returns the #VALUE! error value. If any argument is less than zero, Gcd returns the #NUM! error value. One divides any value evenly. A prime number has only itself and one as even divisors.

Gcd (Arg1, Arg2, ..., Arg30)


Dim dblGcd As Double
dblGcd = WorksheetFunction.Gcd(Arg1:=)

Arguments

Arg1, Arg2, ..., Arg30